added duplicate user error in add_member

This commit is contained in:
Luke Miller
2021-04-28 00:45:39 -04:00
parent 58458efd8e
commit 3348dcfe19
2 changed files with 20 additions and 1 deletions

View File

@@ -7,4 +7,17 @@ print('\nCreating an org called "test_org"')
test_org = modpol.instance:add_org('test_org')
print('\nTrying to create an org with the same name')
duplicate = modpol.instance:add_org('test_org')
duplicate = modpol.instance:add_org('test_org')
print('\nAdding user "luke" to test_org')
test_org:add_member('luke')
print('\nTrying to add duplicate user to test_org')
test_org:add_member('luke')
print('\nRemoving user "luke" from test_org')
test_org:remove_member('luke')
print('\nTrying to remove user "luke" from empty member list')
test_org:remove_member('luke')