from card import Card import unittest class MyUnitTestClass(unittest.TestCase): def test_4(self): c = Card(4, 'C') self.assertEqual(str(c), '4C') def test_J(self): c = Card(11, 'H') self.assertEqual(str(c), 'JH') def test_Q(self): c = Card(12, 'D') self.assertEqual(str(c), 'QD') def test_K(self): c = Card(13, 'S') self.assertEqual(str(c), 'KS') def test_A(self): c = Card(14, 'H') self.assertEqual(str(c), 'AH') def test_repr(self): c = Card(14, 'H') self.assertEqual(repr(c), 'AH') if __name__ == '__main__': unittest.main( )