def test_reset(self): ''' test method reset() ''' shoe = Shoe(8) self.assertTrue(shoe.cut_card_seen(), "new shoe cut card 0") shoe.set_cut_card(1) self.assertFalse(shoe.cut_card_seen(), "new cut card 1") shoe.reset() self.assertTrue(shoe.cut_card_seen(), "after reset back to 0")
def test_cut_card_seen(self): '''! test method cut_card_seen() ''' shoe = Shoe(8) self.assertTrue(shoe.cut_card_seen(), "new shoe, yes") shoe.set_cut_card(1) self.assertFalse(shoe.cut_card_seen(), "position 1 no deal, no") card1 = shoe.deal() self.assertTrue(shoe.cut_card_seen(), "after 1 dealt, then yes")