Add test for XML endpoint

This commit is contained in:
Kevin McCarthy
2014-06-21 12:34:22 -10:00
parent 64d10cba0e
commit 745f9b5009
+5
View File
@@ -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()