MCPcopy
hub / github.com/tornadoweb/tornado / test_copy

Method test_copy

tornado/test/web_test.py:3307–3312  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3305
3306class HTTPErrorTest(unittest.TestCase):
3307 def test_copy(self):
3308 e = HTTPError(403, reason="Go away")
3309 e2 = copy.copy(e)
3310 self.assertIsNot(e, e2)
3311 self.assertEqual(e.status_code, e2.status_code)
3312 self.assertEqual(e.reason, e2.reason)
3313
3314
3315class ApplicationTest(AsyncTestCase):

Callers

nothing calls this directly

Calls 2

HTTPErrorClass · 0.90
copyMethod · 0.80

Tested by

no test coverage detected