def test_floatnullable_to_none(self, raw): act = floatnullable(raw) self.assertIsNone(act)
def test_floatnullable_raises(self, raw): with self.assertRaises(Exception): floatnullable(raw)
def test_floatnullable(self, raw, exp): act = floatnullable(raw) self.assertEqual(act, exp)