Beispiel #1
0
 def test_is_flush_should_return_false(self):
     card1 = Card(DeckSuite.TILES, DeckValue.TWO)
     card2 = Card(DeckSuite.TILES, DeckValue.THREE)
     card3 = Card(DeckSuite.TILES, DeckValue.SEVEN)
     card4 = Card(DeckSuite.HEARTS, DeckValue.JACK)
     card5 = Card(DeckSuite.TILES, DeckValue.ACE)
     self.assertFalse(
         HandsHelper.is_flush(card1, card2, card3, card4, card5))
Beispiel #2
0
 def test_is_flush_should_return_true_if_cards_are_of_one_kind(self):
     card1 = Card(DeckSuite.TILES, DeckValue.TWO)
     card2 = Card(DeckSuite.TILES, DeckValue.THREE)
     card3 = Card(DeckSuite.TILES, DeckValue.EIGHT)
     card4 = Card(DeckSuite.TILES, DeckValue.NINE)
     card5 = Card(DeckSuite.TILES, DeckValue.ACE)
     self.assertTrue(HandsHelper.is_flush(card1, card2, card3, card4,
                                          card5))