class PandigitalTestCase(unittest.TestCase): def setUp(self): self.pandigital = Pandigital() def test_is_pandigital(self): self.assertTrue(self.pandigital.is_pandigital('123456789')) def test_product_pandigital(self): self.assertEqual(self.pandigital.product_pandigital(192), '192384576') def test_create_pandigitals(self): self.assertEqual(self.pandigital.create_pandigitals('12'), [12, 21])
def setUp(self): self.pandigital = Pandigital()