self.assertIsNotNone(table)
rows = table.find_all('tr')
self.assertEqual(len(rows), 9+1)
+
+ def test_rodelbahn_view(self):
+ result = self.app.get('/rodelbahn/view/926')
+ 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, 'Rodelbahn')
+ self.assertIn('Hühnerspiel', str(soup))