Example #1
0
 def test_rpc_remove_response(self):
     rpc = Rpc(FakeConnection())
     uuid = rpc.register_request(['Test'])
     self.assertEqual(len(rpc._response), 1)
     self.assertEqual(len(rpc._response[uuid]), 0)
     rpc.remove_response(uuid)
     self.assertEqual(len(rpc._response), 0)
Example #2
0
 def test_rpc_remove_response_none(self):
     rpc = Rpc(FakeConnection())
     self.assertIsNone(rpc.remove_response(None))