From 745f9b50095ee3b17f20c7ac8eb70d135ccabe12 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sat, 21 Jun 2014 12:34:22 -1000 Subject: [PATCH] Add test for XML endpoint --- test_httpbin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test_httpbin.py b/test_httpbin.py index 7b3274a..4d961bc 100755 --- a/test_httpbin.py +++ b/test_httpbin.py @@ -183,5 +183,10 @@ class HttpbinTestCase(unittest.TestCase): response = self.app.open(path='/status/418', method=m) self.assertEqual(response.status_code, 418) + def test_xml_endpoint(self): + response = self.app.get(path='/xml') + self.assertEqual(response.headers.get('Content-Type'), 'application/xml') + + if __name__ == '__main__': unittest.main()