def test_teams_have_same_amount_of_points(self): state = DominoState( 1,{ 'tiles_by_player':[ [{4, 6}, {5,1}], [{3, 1},{5} ], [{4} ], [{4,3}, {3,0}] ], 'suits_at_ends':{2} }) self.assertEqual(state._team_with_fewer_points(), 0)
def test_team2_has_fewer_points(self): state = DominoState( 1,{ 'tiles_by_player':[ [{4, 6}, {5,1}], [{3, 1}], [{4} ], [{4,3}] ], 'suits_at_ends':{2} }) self.assertEqual(state._team_with_fewer_points(), state.team_2)