mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
assertEquals -> assertEqual
This commit is contained in:
parent
5842d8eba4
commit
3de4f8bab6
@ -25,12 +25,12 @@ class ModelInstanceCreationTests(TestCase):
|
|||||||
pub_date=datetime(2005, 7, 28),
|
pub_date=datetime(2005, 7, 28),
|
||||||
)
|
)
|
||||||
self.assertIsNone(a.id)
|
self.assertIsNone(a.id)
|
||||||
self.assertEquals(Article.objects.all().count(), 0)
|
self.assertEqual(Article.objects.all().count(), 0)
|
||||||
|
|
||||||
# Save it into the database. You have to call save() explicitly.
|
# Save it into the database. You have to call save() explicitly.
|
||||||
a.save()
|
a.save()
|
||||||
self.assertIsNotNone(a.id)
|
self.assertIsNotNone(a.id)
|
||||||
self.assertEquals(Article.objects.all().count(), 1)
|
self.assertEqual(Article.objects.all().count(), 1)
|
||||||
|
|
||||||
def test_can_initialize_model_instance_using_positional_arguments(self):
|
def test_can_initialize_model_instance_using_positional_arguments(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user