Fixed typo in m2m_through_regress test methods.

This commit is contained in:
Tim Graham 2016-12-23 15:32:30 -05:00
parent c1b221a9b9
commit 9710677c10
1 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ class ToFieldThroughTests(TestCase):
["<Driver: Barney Gumble>", "<Driver: Ryan Briscoe>"]
)
def test_m2m_relations_unsable_on_null_to_field(self):
def test_m2m_relations_unusable_on_null_to_field(self):
nullcar = Car(make=None)
msg = (
'"<Car: None>" needs to have a value for field "make" before this '
@ -222,7 +222,7 @@ class ToFieldThroughTests(TestCase):
with self.assertRaisesMessage(ValueError, msg):
nullcar.drivers.all()
def test_m2m_relations_unsable_on_null_pk_obj(self):
def test_m2m_relations_unusable_on_null_pk_obj(self):
msg = (
"'Car' instance needs to have a primary key value before a "
"many-to-many relationship can be used."