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

Method test_copy

tornado/test/httpclient_test.py:1002–1006  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1000
1001class HTTPErrorTestCase(unittest.TestCase):
1002 def test_copy(self):
1003 e = HTTPError(403)
1004 e2 = copy.copy(e)
1005 self.assertIsNot(e, e2)
1006 self.assertEqual(e.code, e2.code)
1007
1008 def test_plain_error(self):
1009 e = HTTPError(403)

Callers

nothing calls this directly

Calls 2

HTTPErrorClass · 0.85
copyMethod · 0.80

Tested by

no test coverage detected