]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - tests/test_wradmin.py
Start working on implementing login in tests.
[philipp/winterrodeln/wradmin.git] / tests / test_wradmin.py
index 438e5b36dee29c08767be93702f79ba198e12e3d..80515c23847b89b9b3296e51207516b185192113 100644 (file)
@@ -67,6 +67,9 @@ class TestDbWradmin(WradminTestBase):
         self.assertEqual(result.status_code, 302)
 
     def test_bericht_list(self):
+        result = self.app.post('/login', data={'user': 'john', 'password': 'doe'})
+        self.assertEqual(result.status_code, 200)
+
         result = self.app.get('/bericht/list')
         self.assertEqual(result.status_code, 200)
         self.assertTrue(result.data.startswith(b'<!doctype html'))