mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #24714 -- Used more specific assertions than assertEqual in tests.
This commit is contained in:
parent
3b133ffb8b
commit
eaeea6f947
17 changed files with 83 additions and 82 deletions
|
@ -536,7 +536,7 @@ class QueryTestCase(TestCase):
|
|||
"ForeignKey.validate() uses the correct database"
|
||||
mickey = Person.objects.using('other').create(name="Mickey")
|
||||
pluto = Pet.objects.using('other').create(name="Pluto", owner=mickey)
|
||||
self.assertEqual(None, pluto.full_clean())
|
||||
self.assertIsNone(pluto.full_clean())
|
||||
|
||||
def test_o2o_separation(self):
|
||||
"OneToOne fields are constrained to a single database"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue