1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 23:00:57 +00:00

unset admin after transfer success

This commit is contained in:
lian
2016-05-06 14:52:28 +08:00
parent 804695bbe2
commit e71ca6d84b
2 changed files with 8 additions and 4 deletions

View File

@@ -124,7 +124,10 @@ class GroupsTest(BaseTestCase):
self.assertEqual(200, resp.status_code)
json_resp = json.loads(resp.content)
assert json_resp['owner'] == new_creator
assert new_creator in json_resp['admins']
assert self.user.email not in json_resp['admins']
def test_can_not_transfer_group_to_group_owner(self):
new_creator = self.user.email