main redirect 308
This commit is contained in:
parent
22aa8e441e
commit
84048baecd
1 changed files with 3 additions and 3 deletions
|
@ -15,15 +15,15 @@ class UnitTest(unittest.TestCase):
|
|||
def test_play(self):
|
||||
NB_QUESTION = 9
|
||||
for q in range(NB_QUESTION) :
|
||||
rv = self.app.get('/play/TEST/'+str(q))
|
||||
rv = self.app.get('/play/TEST/'+str(q)+'/')
|
||||
self.assertEqual(rv.status, '200 OK')
|
||||
|
||||
def test_end(self):
|
||||
rv = self.app.get('/end/TEST')
|
||||
rv = self.app.get('/end/TEST/')
|
||||
self.assertEqual(rv.status, '200 OK')
|
||||
|
||||
def test_lost(self):
|
||||
rv = self.app.get('/lost/TEST')
|
||||
rv = self.app.get('/lost/TEST/')
|
||||
self.assertEqual(rv.status,'200 OK')
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue