QA: Pormatting UserAPI_Test
This commit is contained in:
parent
d0c91b0c70
commit
97af27500d
1 changed files with 0 additions and 2 deletions
|
@ -20,13 +20,11 @@ class UserTestPlan(unittest.TestCase):
|
||||||
r = requests.get(self.__class__.url_+'api/getUserByToken/invalidtoken')
|
r = requests.get(self.__class__.url_+'api/getUserByToken/invalidtoken')
|
||||||
self.assertEquals(r.status_code, 403)
|
self.assertEquals(r.status_code, 403)
|
||||||
|
|
||||||
|
|
||||||
def test_getUserByToken_valid(self):
|
def test_getUserByToken_valid(self):
|
||||||
r = requests.get(self.__class__.url_+'api/getUserByToken/'+__CONFIG__['TOKENS']['STUDENT'])
|
r = requests.get(self.__class__.url_+'api/getUserByToken/'+__CONFIG__['TOKENS']['STUDENT'])
|
||||||
self.assertEquals(r.status_code, 200)
|
self.assertEquals(r.status_code, 200)
|
||||||
self.assertEquals(r.json()['username'], 'qa_student')
|
self.assertEquals(r.json()['username'], 'qa_student')
|
||||||
|
|
||||||
|
|
||||||
def test_getUserByToken_empty(self):
|
def test_getUserByToken_empty(self):
|
||||||
r = requests.get(self.__class__.url_+'api/getUserByToken/')
|
r = requests.get(self.__class__.url_+'api/getUserByToken/')
|
||||||
self.assertEquals(r.status_code, 400)
|
self.assertEquals(r.status_code, 400)
|
||||||
|
|
Loading…
Reference in a new issue