Skip to content

Commit

Permalink
Changed camel case test names.
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Jun 30, 2014
1 parent 7051550 commit bf34e61
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/nested_foreign_keys/tests.py
Expand Up @@ -31,7 +31,7 @@ def setUp(self):

# This test failed in #16715 because in some cases INNER JOIN was selected
# for the second foreign key relation instead of LEFT OUTER JOIN.
def testInheritance(self):
def test_inheritance(self):
Event.objects.create()
Screening.objects.create(movie=self.movie)

Expand All @@ -52,7 +52,7 @@ def testInheritance(self):
self.assertEqual(Event.objects.exclude(screening__movie=self.movie).count(), 1)

# These all work because the second foreign key in the chain has null=True.
def testInheritanceNullFK(self):
def test_inheritance_null_FK(self):
Event.objects.create()
ScreeningNullFK.objects.create(movie=None)
ScreeningNullFK.objects.create(movie=self.movie)
Expand All @@ -79,7 +79,7 @@ def test_null_exclude(self):

# This test failed in #16715 because in some cases INNER JOIN was selected
# for the second foreign key relation instead of LEFT OUTER JOIN.
def testExplicitForeignKey(self):
def test_explicit_ForeignKey(self):
Package.objects.create()
screening = Screening.objects.create(movie=self.movie)
Package.objects.create(screening=screening)
Expand All @@ -99,7 +99,7 @@ def testExplicitForeignKey(self):
self.assertEqual(Package.objects.exclude(screening__movie=self.movie).count(), 1)

# These all work because the second foreign key in the chain has null=True.
def testExplicitForeignKeyNullFK(self):
def test_explicit_ForeignKey_NullFK(self):
PackageNullFK.objects.create()
screening = ScreeningNullFK.objects.create(movie=None)
screening_with_movie = ScreeningNullFK.objects.create(movie=self.movie)
Expand Down Expand Up @@ -128,7 +128,7 @@ def setUp(self):
self.director = Person.objects.create(name='Terry Gilliam / Terry Jones')
self.movie = Movie.objects.create(title='Monty Python and the Holy Grail', director=self.director)

def testInheritance(self):
def test_inheritance(self):
Event.objects.create()
Screening.objects.create(movie=self.movie)

Expand All @@ -147,7 +147,7 @@ def testInheritance(self):
self.assertEqual(Event.objects.filter(screening__movie__director=self.director).count(), 1)
self.assertEqual(Event.objects.exclude(screening__movie__director=self.director).count(), 1)

def testExplicitForeignKey(self):
def test_explicit_ForeignKey(self):
Package.objects.create()
screening = Screening.objects.create(movie=self.movie)
Package.objects.create(screening=screening)
Expand Down

0 comments on commit bf34e61

Please sign in to comment.