# assertStartWith vs assertStartwith

**URL:** <https://discuss.python.org/t/assertstartwith-vs-assertstartwith/76701>\
**Category:** Core Development\
**Created:** [January 10, 2025, 2:05pm UTC](https://discuss.python.org/t/assertstartwith-vs-assertstartwith/76701 "2025-01-10T14:05:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hugovk](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/hugovk/32/14505_2.png) [@hugovk](https://discuss.python.org/u/hugovk)\
**Post date:** [January 10, 2025, 2:26pm UTC](https://discuss.python.org/t/assertstartwith-vs-assertstartwith/76701/2 "2025-01-10T14:26:32Z")

</div>

I recommend `assertStartsWith()` and `assertEndsWith()`, both for readability and for accessibility – screen readers will have a better chance with the extra capitals and it helps people with dyslexia and cognitive disabilities.

It doesn’t really matter that `str.startswith` is all lower case, because we’re creating a new method name.

All the other [methods](https://docs.python.org/3/library/unittest.html#assert-methods) follow the same capitalisation rule.

For example, the one that checks checks `isinstance` is `assertIsInstance` and not `assertIsinstance`.

Here’s similar accessibility advice about hashtags:

> **[Make Your Hashtags Accessible](https://www.boia.org/blog/make-your-hashtags-accessible)**
>
> Make hashtags accessible to screen readers, people with cognitive or reading disabilities, or anyone who has trouble reading them by capitalizing the first letter of each word. Learn more here, brought to you by the Bureau of Internet Accessibility.

See also [Change environment variable style - #2 by hugovk](https://discuss.python.org/t/change-environment-variable-style/35180/2).

---

_[View the full topic](https://discuss.python.org/t/assertstartwith-vs-assertstartwith/76701)._
