Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
 def setUp(self):
     self.science = Science()