From f6d3238611e6b0d5a984ee449088d6457aee3356 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 23 Sep 2014 11:33:52 -0400 Subject: [PATCH] Fix API tests for the recent change --- test/test_api_usage.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/test_api_usage.py b/test/test_api_usage.py index b2bfe0d39..c1b122cb1 100644 --- a/test/test_api_usage.py +++ b/test/test_api_usage.py @@ -394,10 +394,10 @@ class TestCreateNewUser(ApiTestCase): self.assertEquals('Invalid username auserName: Username must match expression [a-z0-9_]+', json['error_description']) def test_createuser(self): - data = self.postResponse(User, + data = self.postJsonResponse(User, data=NEW_USER_DETAILS, - expected_code=201) - self.assertEquals('"Created"', data) + expected_code=200) + self.assertEquals(True, data['awaiting_verification']) def test_createuser_withteaminvite(self): inviter = model.get_user(ADMIN_ACCESS_USER) @@ -409,10 +409,8 @@ class TestCreateNewUser(ApiTestCase): } details.update(NEW_USER_DETAILS); - data = self.postResponse(User, - data=details, - expected_code=201) - self.assertEquals('"Created"', data) + data = self.postJsonResponse(User, data=details, expected_code=200) + self.assertEquals(True, data['awaiting_verification']) # Make sure the user was added to the team. self.login(ADMIN_ACCESS_USER)