def METHOD_NAME(self):
    a = self.test_class()
    a.value = 2
    self.assertIs(type(a.value), float)
    self.assertEqual(a.value, 2.0)
    a.value_or_none = 2
    self.assertIs(type(a.value_or_none), float)
    self.assertEqual(a.value_or_none, 2.0)