

def test_str_repr_eq(self):
    team_black = Team(0, (0, 2))
    team_white = Team(1, (3, 6), score=5)
    team_black2 = Team(0, (0, 2))
    self.assertEqual(team_black, team_black)
    self.assertEqual(team_black, team_black2)
    self.assertNotEqual(team_black, team_white)
    self.assertEqual(team_black.__str__(), 'Team(0, (0, 2), score=0)')
    self.assertEqual(team_white.__str__(), 'Team(1, (3, 6), score=5)')
    team_black3 = eval(repr(team_black))
    self.assertEqual(team_black, team_black3)
    team_white2 = eval(repr(team_white))
    self.assertEqual(team_white, team_white2)

dataset/ETHPy150Open ASPP/pelita/test/test_datamodel.py TestTeam.test_str_repr_eq/original