Use py.test style assertions

This commit is contained in:
Cory Benfield
2015-10-22 12:25:05 +01:00
parent 3bc189b0af
commit a8fdba15b1
+2 -2
View File
@@ -1136,8 +1136,8 @@ class TestRequests(object):
with contextlib.closing(s.get(httpbin('stream/4'), stream=True)) as response:
pass
self.assertFalse(response._content_consumed)
self.assertTrue(response.raw.closed)
assert not response._content_consumed is False
assert response.raw.closed
@pytest.mark.xfail
def test_response_iter_lines_reentrant(self, httpbin):