Commit 20dbb51b authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents d73b266a 40e6ca65
...@@ -33,12 +33,12 @@ class AutoGroupTest(TestCase): ...@@ -33,12 +33,12 @@ class AutoGroupTest(TestCase):
def test_default(self): def test_default(self):
user = self.create_user() user = self.create_user()
self.assertEquals(user.groups.count(), 1) self.assertEqual(user.groups.count(), 1)
def test_none(self): def test_none(self):
AutoGroup.objects.all().delete() AutoGroup.objects.all().delete()
user = self.create_user() user = self.create_user()
self.assertEquals(user.groups.count(), 0) self.assertEqual(user.groups.count(), 0)
def test_matching(self): def test_matching(self):
AutoGroup.objects.create( AutoGroup.objects.create(
...@@ -46,7 +46,7 @@ class AutoGroupTest(TestCase): ...@@ -46,7 +46,7 @@ class AutoGroupTest(TestCase):
group=Group.objects.get(name='Guests') group=Group.objects.get(name='Guests')
) )
user = self.create_user() user = self.create_user()
self.assertEquals(user.groups.count(), 2) self.assertEqual(user.groups.count(), 2)
def test_nonmatching(self): def test_nonmatching(self):
AutoGroup.objects.create( AutoGroup.objects.create(
...@@ -54,4 +54,4 @@ class AutoGroupTest(TestCase): ...@@ -54,4 +54,4 @@ class AutoGroupTest(TestCase):
group=Group.objects.get(name='Guests') group=Group.objects.get(name='Guests')
) )
user = self.create_user() user = self.create_user()
self.assertEquals(user.groups.count(), 1) self.assertEqual(user.groups.count(), 1)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment