def test_encode_ACCEPT_INT(self):
     assert FloatTypeCase.encode(self.i) == float(self.i)
 def test_encode_RAISE_when_INPUT_WRONG_TYPE(self):
     with self.assertRaises(TypeError):
         FloatTypeCase.encode(self.wrong_type_input)
 def test_encode_ACCEPT_FLOAT(self):
     assert FloatTypeCase.encode(self.f) == self.f