示例#1
0
 def test_matches_one_guess(self):
     """should remove all guesses from set of matches"""
     first_guess, second_guess = self.guesses
     player.remove_guesses_from_matches(
         self.matches, {first_guess})
     nose.assert_set_equal(self.matches, {second_guess})
示例#2
0
 def test_same_reference(self):
     """should modify set of matches"""
     old_matches = self.matches
     player.remove_guesses_from_matches(self.matches, self.guesses)
     nose.assert_set_equal(self.matches, old_matches)