1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00
This commit is contained in:
Veres Lajos
2014-11-03 22:48:03 +00:00
committed by Tim Graham
parent 7b42036752
commit a71a2ea756
21 changed files with 28 additions and 28 deletions

View File

@@ -981,7 +981,7 @@ class DBConstraintTestCase(TransactionTestCase):
available_apps = ['backends']
def test_can_reference_existant(self):
def test_can_reference_existent(self):
obj = models.Object.objects.create()
ref = models.ObjectReference.objects.create(obj=obj)
self.assertEqual(ref.obj, obj)
@@ -989,7 +989,7 @@ class DBConstraintTestCase(TransactionTestCase):
ref = models.ObjectReference.objects.get(obj=obj)
self.assertEqual(ref.obj, obj)
def test_can_reference_non_existant(self):
def test_can_reference_non_existent(self):
self.assertFalse(models.Object.objects.filter(id=12345).exists())
ref = models.ObjectReference.objects.create(obj_id=12345)
ref_new = models.ObjectReference.objects.get(obj_id=12345)