def test_int(self):
     self.assertEqual(functions.minutes2int("50"), 50)
     self.assertEqual(functions.minutes2int("50.654"), 50.65)
 def test_NaN(self):
     self.assertEqual(functions.minutes2int("mlkj"), 0)
     self.assertEqual(functions.minutes2int(""), 0)
     self.assertEqual(functions.minutes2int("50,654"), 0)
示例#3
0
 def test_int(self):
     self.assertEqual(functions.minutes2int('50'), 50)
     self.assertEqual(functions.minutes2int('50.654'), 50.65)
示例#4
0
 def test_NaN(self):
     self.assertEqual(functions.minutes2int('mlkj'), 0)
     self.assertEqual(functions.minutes2int(''), 0)
     self.assertEqual(functions.minutes2int('50,654'), 0)
 def test_NaN(self):
     self.assertEqual(functions.minutes2int('mlkj'), 0)
     self.assertEqual(functions.minutes2int(''), 0)
     self.assertEqual(functions.minutes2int('50,654'), 0)
 def test_int(self):
     self.assertEqual(functions.minutes2int('50'), 50)
     self.assertEqual(functions.minutes2int('50.654'), 50.65)