def test_match_not_found(self):
"""Check if the server send an empty match if not found."""
self.service.cache_manager.find_match.return_value = None
self.service.riot_api_handler.get_match.side_effect = LoLException(
"404", requests.Response())
response = self.stub.Match(service_pb2.MatchRequest(id=4242,
region=constants_pb2.EUW))
self.assertEqual(response, match_pb2.MatchReference())
评论列表
文章目录