fixed some tests accidentally broken in previous commit

This commit is contained in:
Pablo Hoffman 2011-06-06 16:11:43 -03:00
parent f793515565
commit 48509b036a
1 changed files with 2 additions and 3 deletions

View File

@ -18,6 +18,5 @@ class FetchTest(ProcessTest, SiteTest, unittest.TestCase):
def test_headers(self):
_, out, _ = yield self.execute([self.url('/text'), '--headers'])
out = out.replace('\r', '') # required on win32
headers = eval(out)
assert 'TwistedWeb' in headers['Server'][0]
self.assertEqual(headers['Content-Type'], ['text/plain'])
assert 'Server: TwistedWeb' in out
assert 'Content-Type: text/plain' in out