Skip to content

Commit 4db88df

Browse files
Added test to make sure index (/) will render correctly (to prevent postmanlabs#484)
1 parent 4c267df commit 4db88df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test_httpbin.py

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ def setUp(self):
114114
httpbin.app.debug = True
115115
self.app = httpbin.app.test_client()
116116

117+
def test_index(self):
118+
response = self.app.get('/', headers={'User-Agent': 'test'})
119+
self.assertEqual(response.status_code, 200)
120+
117121
def get_data(self, response):
118122
if 'get_data' in dir(response):
119123
return response.get_data()

0 commit comments

Comments
 (0)