mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.7.x] Fixed typos using https://github.com/vlajos/misspell_fixer
Backport of a71a2ea756 from master
This commit is contained in:
@@ -950,7 +950,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)
|
||||
@@ -958,7 +958,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)
|
||||
|
||||
Reference in New Issue
Block a user