updated org test
This commit is contained in:
parent
c44defa864
commit
382b4c8dc9
@ -4,20 +4,20 @@ print('\nRemoving existing orgs')
|
||||
modpol.orgs.reset()
|
||||
|
||||
print('\nCreating an org called "test_org"')
|
||||
test_org = modpol.instance:add_org('test_org')
|
||||
test_org = modpol.instance:add_org('test_org', 'luke')
|
||||
|
||||
print('\nTrying to create an org with the same name')
|
||||
duplicate = modpol.instance:add_org('test_org')
|
||||
duplicate = modpol.instance:add_org('test_org', 'luke')
|
||||
|
||||
print('\nAdding user "luke" to test_org')
|
||||
test_org:add_member('luke')
|
||||
print('\nAdding user "nathan" to test_org')
|
||||
test_org:add_member('nathan')
|
||||
|
||||
print('\nTrying to add duplicate user to test_org')
|
||||
test_org:add_member('luke')
|
||||
test_org:add_member('nathan')
|
||||
|
||||
print('\nRemoving user "luke" from test_org')
|
||||
test_org:remove_member('luke')
|
||||
print('\nRemoving user "nathan" from test_org')
|
||||
test_org:remove_member('nathan')
|
||||
|
||||
print('\nTrying to remove user "luke" from empty member list')
|
||||
test_org:remove_member('luke')
|
||||
print('\nTrying to remove user "nathan" from empty member list')
|
||||
test_org:remove_member('nathan')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user