mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
[1.8.x] Fixed #24714 -- Used more specific assertions than assertEqual in tests.
Backport of eaeea6f947 from master
This commit is contained in:
committed by
Tim Graham
parent
5105c1628d
commit
c37eb3c870
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user