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 authored and Joseph Nuthalapati committed 2018-09-24 19:40:09 +05:30
1 parent d0581243aa
commit 292597d894
1 file changed
+1
+1
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)