]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/commitdiff
Add test_gasthaus_list.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 24 Oct 2017 21:17:15 +0000 (21:17 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 24 Oct 2017 21:17:15 +0000 (21:17 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wradmin/trunk@2721 7aebc617-e5e2-0310-91dc-80fb5f6d2477

tests/test_wradmin.py

index 7b3c081082e8b4de179ca286379384d1fad9cc3a..0f7911e8d0f218eed53e037d54d23568efe2929f 100644 (file)
@@ -64,6 +64,14 @@ class TestDbWradmin(WradminTestBase):
         self.assertEqual(soup.title.text, 'Rodelbahnbericht')
         self.assertIn('Brandstatt Alm', str(soup.table))
 
+    def test_gasthaus_list(self):
+        result = self.app.get('/gasthaus/list')
+        self.assertEqual(result.status_code, 200)
+        self.assertTrue(result.data.startswith(b'<!DOCTYPE html'))
+        soup = bs4.BeautifulSoup(result.data, 'html.parser')
+        self.assertEqual(soup.title.text, 'Gasthäuser')
+        self.assertIn('Meißner', str(soup.table))
+
     def test_rodelbahn_list(self):
         result = self.app.get('/rodelbahn/list')
         self.assertEqual(result.status_code, 200)