class TestCards(unittest.TestCase):
    """ Tests the functionality of the Card class. """

    def setUp(self):
        self.test_card = Card("9", "h")

    def tearDown(self):
        self.test_card = None

    def test_card_suit_and_face(self):
        """ Checks the card's suit and face to be sure they are correct. """
        self.assertEqual(self.test_card.get_suit(), "h")
        self.assertEqual(self.test_card.get_face(), "9")

    def test_printing_a_card(self):
        """ Checks the card's string output for correctness. """
        self.assertEqual(str(self.test_card), "9h")