From 4db88dfa551cd749884aef2c085134b3c6b89119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schr=C3=B6der?= Date: Fri, 6 Jul 2018 22:08:43 +0200 Subject: [PATCH] Added test to make sure index (/) will render correctly (to prevent #484) --- test_httpbin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_httpbin.py b/test_httpbin.py index 6154ade..d24a8b5 100755 --- a/test_httpbin.py +++ b/test_httpbin.py @@ -114,6 +114,10 @@ class HttpbinTestCase(unittest.TestCase): httpbin.app.debug = True self.app = httpbin.app.test_client() + def test_index(self): + response = self.app.get('/', headers={'User-Agent': 'test'}) + self.assertEqual(response.status_code, 200) + def get_data(self, response): if 'get_data' in dir(response): return response.get_data()