mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
d0581243aa
commit
292597d894
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user