Why are some Django methods PascalCase and others snake_case?

811 views Asked by At

As far as I know, the convention is to use snake_case for method names, so why are some methods in Django PascalCase, e.g. Django's TestCase Class?

1

There are 1 answers

0
Daniel Roseman On BEST ANSWER

Django's Testing framework inherits from Python's unittest module. That, in turn, is heavily based on the Java JUnit framework. Java uses PascalCase naming conventions; when the code was ported to Python the names were kept.