Commit 2bee5452 authored by James Valleroy's avatar James Valleroy

users: Reset groups before testing register_group

Signed-off-by: James Valleroy's avatarJames Valleroy <jvalleroy@mailbox.org>
parent 574fbb47
...@@ -28,6 +28,7 @@ class TestGroups(unittest.TestCase): ...@@ -28,6 +28,7 @@ class TestGroups(unittest.TestCase):
"""Test groups behavior.""" """Test groups behavior."""
def test_register_group(self): def test_register_group(self):
"""Test for multi addition of same group""" """Test for multi addition of same group"""
users.groups = dict() # reset groups
group = ('TestGroup', 'Group for testing') group = ('TestGroup', 'Group for testing')
users.register_group(group) users.register_group(group)
users.register_group(group) users.register_group(group)
......
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