comparison test/test_liveserver.py @ 6386:2a2da73e1e26

Remove Connection: close header for 501 error handling rest Ralf doesn't know why the "Connection: close" header was added. Was there since the original code to support OPTIONS verb was added. He agrees it can be removed. Enable test for that code path.
author John Rouillard <rouilj@ieee.org>
date Mon, 26 Apr 2021 11:54:57 -0400
parents 8c43129f29ca
children 8f1b91756457
comparison
equal deleted inserted replaced
6385:8c43129f29ca 6386:2a2da73e1e26
68 self.assertEqual(f.status_code, 200) 68 self.assertEqual(f.status_code, 200)
69 self.assertTrue(b'Roundup' in f.content) 69 self.assertTrue(b'Roundup' in f.content)
70 self.assertTrue(b'Creator' in f.content) 70 self.assertTrue(b'Creator' in f.content)
71 71
72 72
73 def disable_test_http_options(self): 73 def test_http_options(self):
74 """ options returns an unimplemented error for this case.""" 74 """ options returns an unimplemented error for this case."""
75 '''note this currently triggers an assertion failure in the
76 python wsgi handler, so disable while investigating'''
77 75
78 # do not send content-type header for options 76 # do not send content-type header for options
79 f = requests.options(self.url_base() + '/', 77 f = requests.options(self.url_base() + '/',
80 headers = {'content-type': ""}) 78 headers = {'content-type': ""})
81 # options is not implemented for the non-rest interface. 79 # options is not implemented for the non-rest interface.

Roundup Issue Tracker: http://roundup-tracker.org/