8

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?

Aryan Beezadhur
  • 4,503
  • 4
  • 21
  • 42
as8
  • 93
  • 4

1 Answers1

15

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.

Aryan Beezadhur
  • 4,503
  • 4
  • 21
  • 42
Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895