(self)
| 1878 | self.assertIn(b"682: Foo", response.body) |
| 1879 | |
| 1880 | def test_httperror_str(self): |
| 1881 | self.assertEqual(str(HTTPError(682, reason="Foo")), "HTTP 682: Foo") |
| 1882 | |
| 1883 | def test_httperror_str_from_httputil(self): |
| 1884 | self.assertEqual(str(HTTPError(682)), "HTTP 682: Unknown") |