def test_deck_deal_cards(self): deck = Deck() while len(deck.get_cards())>0: last_card = deck.get_cards()[-1] proper_output = last_card submitted_output = deck.deal_card() self.assertEqual(proper_output, submitted_output, "Checking deck.deal_card() method returns the last card in the deck.\nExpected:"+str(proper_output)+"\nSubmitted:"+str(submitted_output))