From 06806e76173a5bb9730a8c3efd557039202c52a4 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Sun, 11 Apr 2010 13:24:52 -0700 Subject: [PATCH] I'd slightly prefer not to use nose-specific assertions, because it'd be nice for people to be able to run the tests individually without needing to install nose. Also, it sounds like nose is being supplanted by unittest2. --- tests/wsgi_test.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/wsgi_test.py b/tests/wsgi_test.py index 8f06be6..5e79def 100644 --- a/tests/wsgi_test.py +++ b/tests/wsgi_test.py @@ -5,7 +5,6 @@ import errno import os import socket import sys -from nose.tools import eq_, ok_ from tests import skipped, LimitedTestCase from unittest import main @@ -878,14 +877,14 @@ class IterableAlreadyHandledTest(_TestBase): fd.flush() response_line, headers = read_headers(sock) print headers - eq_(response_line, 'HTTP/1.1 200 OK\r\n') - ok_('connection' not in headers) + self.assertEqual(response_line, 'HTTP/1.1 200 OK\r\n') + self.assert_('connection' not in headers) fd.write('GET / HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n') fd.flush() response_line, headers, body = read_http(sock) - eq_(response_line, 'HTTP/1.1 200 OK\r\n') - eq_(headers.get('transfer-encoding'), 'chunked') - eq_(body, '0\r\n\r\n') # Still coming back chunked + self.assertEqual(response_line, 'HTTP/1.1 200 OK\r\n') + self.assertEqual(headers.get('transfer-encoding'), 'chunked') + self.assertEqual(body, '0\r\n\r\n') # Still coming back chunked