def test_decode_RAISE_when_INPUT_WRONG_TYPE(self): with self.assertRaises(TypeError): IntTypeCase.decode(self.wrong_type_input)
def test_decode_RETURN_INT(self): assert IntTypeCase.decode(str(self.i)) == self.i
def test_decode_RETURN_LONG(self): assert IntTypeCase.decode(str(self.l)) == self.l
def test_encode_ACCEPT_LONG(self): assert IntTypeCase.encode(self.l) == self.l
def test_decode_RETURN_NONE(self): assert IntTypeCase.decode(None) == None
def test_encode_ACCEPT_INT(self): assert IntTypeCase.encode(self.i) == self.i