def test_get_list_mixed(self): """""" mixed_list = ["AS", "9 of Diamonds", "Hearts", "King"] left, got_cards = tools.get_list(self.stack, mixed_list) self.get_list_helper(left, got_cards)
def test_get_list_partial_suit(self): """""" partial_list = ["Spades", "Diamonds", "Hearts", "Clubs"] left, got_cards = tools.get_list(self.stack, partial_list) self.get_list_helper(left, got_cards)
def test_get_list_partial_value(self): """""" partial_list = ["Ace", "9", "Queen", "King"] left, got_cards = tools.get_list(self.stack, partial_list) self.get_list_helper(left, got_cards)
def test_get_list_abbrev(self): """""" abbrev_list = ["AS", "9D", "QH", "KC"] left, got_cards = tools.get_list(self.stack, abbrev_list) self.get_list_helper(left, got_cards)
def test_get_list_full(self): """""" full_list = [ "Ace of Spades", "9 of Diamonds", "Queen of Hearts", "King of Clubs", ] left, got_cards = tools.get_list(self.stack, full_list) self.get_list_helper(left, got_cards)
def test_get_list_limit(self): """""" left, got_cards = tools.get_list(self.stack, ["Spades"], limit=1) self.assertEqual(len(got_cards), 1)