From 315e07aad250c3f43d5114abad2473627e21909e Mon Sep 17 00:00:00 2001 From: etyemyer Date: Mon, 15 Jun 2015 20:49:57 +0300 Subject: [PATCH] UserApi_Test - test getuserbytoken with valid,invalid and empty string CampusesApi_test - with valid,invalid string --- Testing/UserAPI_Test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Testing/UserAPI_Test.py b/Testing/UserAPI_Test.py index f1ba2d8..179979e 100644 --- a/Testing/UserAPI_Test.py +++ b/Testing/UserAPI_Test.py @@ -18,7 +18,7 @@ class UserTestPlan(unittest.TestCase): def test_getUserByToken_invalid(self): r = requests.get(self.__class__.url_+'api/getUserByToken/invalidtoken') - self.assertEquals(r.status_code, 403) + self.assertEquals(r.status_code, 204) def test_getUserByToken_valid(self): @@ -30,7 +30,7 @@ class UserTestPlan(unittest.TestCase): def test_getUserByToken_empty(self): r = requests.get(self.__class__.url_+'api/getUserByToken/') self.assertEquals(r.status_code, 400) - + if __name__ == '__main__':