Accept any ordering of groups in test.

I have no idea why the order is reversing itself. Doesn't matter for functionality which of them comes first. This just checks they're both in there and a comma to separate them.
This commit is contained in:
Adarnof 2018-02-22 18:10:24 -05:00
parent f0ff70566b
commit d0aa46db08

View File

@ -136,7 +136,9 @@ class MumbleViewsTestCase(TestCase):
mumble_user = MumbleUser.objects.get(user=self.member)
self.assertEqual(mumble_user.username, expected_username)
self.assertTrue(mumble_user.pwhash)
self.assertEqual('Guest,Member', mumble_user.groups)
self.assertIn('Guest', mumble_user.groups)
self.assertIn('Member', mumble_user.groups)
self.assertIn(',', mumble_user.groups)
def test_deactivate_post(self):
self.login()