def test_name_team(self): """ Test que comprueba que el nombre del equipo buscado es el devuelto :return: """ result = Result() name = "" team = "Valencia" if (rService.getResultByLocal("Valencia") is not None): result = rService.getResultByLocal("Valencia") name = result.getTeamLocal() elif (rService.getResultByVisit("Valencia") is not None): result = rService.getResultByVisit("Valencia") name = result.getTeamVisit() self.assertEqual(name, team)
def test_result_team_visit(self): result = Result(teamLocal="Granada", teamVisit="Valladolid", resultLocal=1, resultVisit=1) self.assertEqual(result.getTeamVisit(), "Valladolid")