Пример #1
0
 def test_floatnullable_to_none(self, raw):
     act = floatnullable(raw)
     self.assertIsNone(act)
Пример #2
0
 def test_floatnullable_raises(self, raw):
     with self.assertRaises(Exception):
         floatnullable(raw)
Пример #3
0
 def test_floatnullable(self, raw, exp):
     act = floatnullable(raw)
     self.assertEqual(act, exp)