class ScienceBaseTest(TestCase): def setUp(self): self.science = Science() def tearDown(self): del self.science def test_str(self): self.assertTrue(re.match(STR_REGEX, self.science.__str__())) def test_math_formula(self): result = self.science.math_formula() self.assertIn(result, common.MATH_FORMULAS)
class ScienceBaseTest(TestCase): def setUp(self): self.science = Science() def tearDown(self): del self.science def test_math_formula(self): result = self.science.math_formula() self.assertIn(result, common.MATH_FORMULAS)
def setUp(self): self.science = Science()