MCPcopy Create free account
hub / github.com/pexpect/pexpect / test_picking

Method test_picking

tests/test_pickling.py:8–11  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class PickleTest(unittest.TestCase):
8 def test_picking(self):
9 e = ExceptionPexpect('Oh noes!')
10 clone = pickle.loads(pickle.dumps(e))
11 self.assertEqual(e.value, clone.value)
12
13if __name__ == '__main__':
14 unittest.main()

Callers

nothing calls this directly

Calls 1

ExceptionPexpectClass · 0.90

Tested by

no test coverage detected