def test_int(self): result = Scorer(11111111111111111111) score = result.get_score() self.assertEqual(score, 20)
def test_normal(self): result = Scorer('Х4/34-4-5X17X1/5-') score = result.get_score() self.assertEqual(score, 119)
def test_x(self): result = Scorer('xxxxxxxxxx') score = result.get_score() self.assertEqual(score, 200)