Really disallow usage of the same account for an org as the one being converted. Before, you could do so via email.

This commit is contained in:
Joseph Schorr 2015-04-29 20:30:37 -04:00
parent edd0ba4cdb
commit 60036927c9
2 changed files with 16 additions and 6 deletions

View file

@ -307,6 +307,16 @@ class TestConvertToOrganization(ApiTestCase):
self.assertEqual('The admin user is not valid', json['message'])
def test_sameadminuser_by_email(self):
self.login(READ_ACCESS_USER)
json = self.postJsonResponse(ConvertToOrganization,
data={'adminUser': 'no1@thanks.com',
'adminPassword': 'password',
'plan': 'free'},
expected_code=400)
self.assertEqual('The admin user is not valid', json['message'])
def test_invalidadminuser(self):
self.login(READ_ACCESS_USER)
json = self.postJsonResponse(ConvertToOrganization,