QA: Fixed a small test in UserAPI

This commit is contained in:
Sagi Dayan 2015-06-16 09:37:25 +03:00
parent 0a403286bf
commit bd541b59c4

View file

@ -67,7 +67,7 @@ class UserTestPlan(unittest.TestCase):
def test_Lecturer_isLecturer(self): def test_Lecturer_isLecturer(self):
r = requests.get(self.__class__.url_+'api/users/getUserByToken/'+__CONFIG__['TOKENS']['LECTURER']) r = requests.get(self.__class__.url_+'api/users/getUserByToken/'+__CONFIG__['TOKENS']['LECTURER'])
self.assertEquals(r.status_code, 200) self.assertEquals(r.status_code, 200)
self.assertFalse(r.json()['isLecturer']) self.assertTrue(r.json()['isLecturer'])
def test_isClassIdListEmpty_Lecturer(self): def test_isClassIdListEmpty_Lecturer(self):
r = requests.get(self.__class__.url_+'api/users/getUserByToken/'+__CONFIG__['TOKENS']['LECTURER']) r = requests.get(self.__class__.url_+'api/users/getUserByToken/'+__CONFIG__['TOKENS']['LECTURER'])