def test_card_name_from_index_last_of_deck(self): cardname = cardname_from_index(deck_test, -1) self.assertEqual(cardname, "King of Spades")
def test_card_name_from_index_last_of_clubs(self): cardname = cardname_from_index(deck_test, 38) self.assertEqual(cardname, "King of Clubs")
def test_card_name_from_index_first_of_spades(self): cardname = cardname_from_index(deck_test, 39) self.assertEqual(cardname, "Ace of Spades")
def test_card_name_from_index_first_of_clubs(self): cardname = cardname_from_index(deck_test, 26) self.assertEqual(cardname, "Ace of Clubs")
def test_card_name_from_index_last_of_diamonds(self): cardname = cardname_from_index(deck_test, 25) self.assertEqual(cardname, "King of Diamonds")
def test_card_name_from_index_first_of_diamonds(self): cardname = cardname_from_index(deck_test, 13) self.assertEqual(cardname, "Ace of Diamonds")
def test_card_name_from_index_last_of_hearts(self): cardname = cardname_from_index(deck_test, 12) self.assertEqual(cardname, "King of Hearts")
def test_card_name_from_index_first_of_hearts(self): cardname = cardname_from_index(deck_test, 0) self.assertEqual(cardname, "Ace of Hearts")