mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
Add test for XML endpoint
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user