def test_1(self): hand = CardHand() hand.add(Card('1', 'D')) hand.add(Card('2', 'D')) actual = hand.score() expected = 3 self.assertEqual(actual, expected)
def test_7(self): hand = CardHand() hand.add(Card('7', 'D')) hand.add(Card('K', 'D')) actual = hand.score() expected = 17 self.assertEqual(actual, expected)
def test_3(self): hand = CardHand() hand.add(Card('J', 'D')) hand.add(Card('A', 'D')) actual = hand.score() expected = 21 self.assertEqual(actual, expected)