def test_decode_RAISE_when_INPUT_WRONG_TYPE(self): with self.assertRaises(TypeError): FloatTypeCase.decode(self.wrong_type_input)
def test_decode_RETURN_FLOAT(self): assert FloatTypeCase.decode(str(self.f)) == self.f
def test_encode_ACCEPT_INT(self): assert FloatTypeCase.encode(self.i) == float(self.i)
def test_decode_RETURN_NONE(self): assert FloatTypeCase.decode(None) == None
def test_encode_ACCEPT_FLOAT(self): assert FloatTypeCase.encode(self.f) == self.f