示例#1
0
class WithoutReplacementTest(unittest.TestCase):
    def setUp(self):
        """docstring for setUp"""
        self.game = SetGame(with_replacement=False)

    def test_exhaust_cards(self):
        """docstring for test_exhaust_cards"""
        all_cards = set()
        for i in xrange(81):
            all_cards.add(self.game.get_random_card())

        self.assertRaises(Exception, self.game.get_random_card)
        self.assertEqual(81, len(all_cards))
示例#2
0
 def setUp(self):
     """docstring for setUp"""
     self.game = SetGame(with_replacement=False)