def test_atof(self):
     self.assertTrue(strop.atof(" 1 ") == 1.0)
     self.assertRaises(ValueError, strop.atof, " 1x")
     self.assertRaises(ValueError, strop.atof, " x1 ")
 def test_atof(self):
     self.assertTrue(strop.atof(" 1 ") == 1.0)
     self.assertRaises(ValueError, strop.atof, " 1x")
     self.assertRaises(ValueError, strop.atof, " x1 ")
Example #3
0
import warnings
Example #4
0
import warnings