def test_flip_toggles_card_facing_direction(): card = PlayingCard(2, 's') card.flip() assert_true(card.is_face_up()) card.flip() assert_false(card.is_face_up())
def test_new_card_has_rank_suit_and_is_face_down(): card = PlayingCard('A', 's') assert_equals(card.rank, 'A') assert_equals(card.suit, 's') assert_equals(card.is_face_up(), False)