def test_spade_glyph(self): card = Card("A", "♠") assert 'A♠' == card.get_card_colour()
def test_club_glyph(self): card = Card("K", "♣") assert 'K♣' == card.get_card_colour()
def test_heart_glyph(self): card = Card("T", "♥") assert 'T\x1b[0;31m♥\x1b[0m' == card.get_card_colour()
def test_diamond_glyph(self): card = Card("8", "♦") assert '8\x1b[0;31m♦\x1b[0m' == card.get_card_colour()
def test_red_card_plain_text(self): card = Card("A", "H") assert 'A\x1b[0;31m♥\x1b[0m' == card.get_card_colour()
def test_get_card_colour(self): card1 = Card("A", "H") card2 = Card("3", "S") assert 'A\x1b[0;31m♥\x1b[0m' == card1.get_card_colour() assert '3♠' == card2.get_card_colour()