Example #1
0
 def test_isconstantFormula(self):
     """check isconstantFormula()
     """
     self.assertFalse(isconstantFormula('x-y+z'))
     self.assertTrue(isconstantFormula('6.023e23'))
     self.assertTrue(isconstantFormula('22/7'))
     self.assertTrue(isconstantFormula('- 22/7'))
     self.assertTrue(isconstantFormula('+13/ 9'))
     return
 def test_isconstantFormula(self):
     """check isconstantFormula()
     """
     self.assertFalse(isconstantFormula('x-y+z'))
     self.assertTrue(isconstantFormula('6.023e23'))
     self.assertTrue(isconstantFormula('22/7'))
     self.assertTrue(isconstantFormula('- 22/7'))
     self.assertTrue(isconstantFormula('+13/ 9'))
     return
Example #3
0
 def test_isconstantFormula(self):
     """check isconstantFormula()
     """
     self.failIf(isconstantFormula('x-y+z'))
     self.failUnless(isconstantFormula('6.023e23'))
     self.failUnless(isconstantFormula('22/7'))
     self.failUnless(isconstantFormula('- 22/7'))
     self.failUnless(isconstantFormula('+13/ 9'))
     return