users: Reset groups before testing register_group

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
James Valleroy 2018-08-19 08:16:26 -04:00 committed by Joseph Nuthalapati
parent d0581243aa
commit 292597d894
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -28,6 +28,7 @@ class TestGroups(unittest.TestCase):
"""Test groups behavior."""
def test_register_group(self):
"""Test for multi addition of same group"""
users.groups = dict() # reset groups
group = ('TestGroup', 'Group for testing')
users.register_group(group)
users.register_group(group)