Commit e584b6e9 authored by Andreas Valder's avatar Andreas Valder

added test for a single course

parent 01cca5f4
......@@ -39,6 +39,26 @@ class VideoTestCase(unittest.TestCase):
r = c.get('/courses')
assert r.status_code == 200
def test_course(self):
with self.app as c:
# normal
r = c.get('/15ws-afi')
assert r.status_code == 200
# not listed
r = c.get('/15ws-bio')
assert r.status_code == 200
# not visible
r = c.get('/15ws-einfprog')
assert r.status_code == 404
self.login(c)
r = c.get('/15ws-afi')
assert r.status_code == 200
r = c.get('/15ws-einfprog')
assert r.status_code == 200
def test_timetable(self):
with self.app as c:
r = c.get('/internal/timetable')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment