def test_rpc_remove_request_none(self): rpc = Rpc(FakeConnection()) self.assertIsNone(rpc.remove_request(None))
def test_rpc_remove_request(self): rpc = Rpc(FakeConnection()) uuid = rpc.register_request(['Test']) self.assertEqual(len(rpc._request), 1) rpc.remove_request(uuid) self.assertEqual(len(rpc._request), 0)
def test_rpc_remove_request(self): rpc = Rpc(FakeConnection()) uuid = rpc.register_request(['travis-ci']) self.assertEqual(len(rpc._request), 1) rpc.remove_request(uuid) self.assertEqual(len(rpc._request), 0)