14 lines
439 B
Python
14 lines
439 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from q3stats.testing import BaseQ3StatsWebAppTestCase
|
|
|
|
|
|
class Test_GetFrontendPlayerGame(BaseQ3StatsWebAppTestCase):
|
|
def test_ok(self):
|
|
with self.app.test_request_context():
|
|
rsp = self.client.get('/players/tomekwojcik/game/spam')
|
|
assert rsp.status_code == 302
|
|
assert rsp.headers['Location'].endswith(
|
|
'/#/players/tomekwojcik/game/spam'
|
|
)
|