def test_get_card_str(self): """ Test that get_card_str() returns the appropriate str representation of a card. Also test that it works with hidden cards. """ card = Card('Hearts', 'King', 10) self.assertEqual(card.get_card_str(), 'King of Hearts') card.hidden = True self.assertEqual(card.get_card_str(), '**')