コード例 #1
0
 def test_card3(self):
     card = Card("3", "c")
     assert card.get_suit() == "c"
     assert card.get_suit() != "K"
     assert card.get_suit() != "9"
     assert card.get_suit() != "3"
     assert card.get_suit() != "d"
     assert card.get_suit() != "h"
     assert card.get_suit() != "s"
コード例 #2
0
 def test_card2(self):
     card = Card("9", "h")
     assert card.get_suit() == "h"
     assert card.get_suit() != "9"
コード例 #3
0
 def test_card1(self):
     card = Card("J", "c")
     assert card.get_suit() == "c"
     assert card.get_suit() != "J"