def test_atol(self):
     self.assertTrue(strop.atol(" 1 ") == 1L)
     self.assertRaises(ValueError, strop.atol, " 1x")
     self.assertRaises(ValueError, strop.atol, " x1 ")
 def test_atol(self):
     self.assertTrue(strop.atol(" 1 ") == 1L)
     self.assertRaises(ValueError, strop.atol, " 1x")
     self.assertRaises(ValueError, strop.atol, " x1 ")
Example #3
0
import warnings
Example #4
0
import warnings