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)
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)