def test_decode_RAISE_when_INPUT_WRONG_TYPE(self): with self.assertRaises(AssertionError): GenericTypeCase.decode(self.l)
def test_decode_RETURN_LONG(self): assert GenericTypeCase.decode(str(self.l)) == self.l
def test_decode_RETURN_FLOAT(self): assert GenericTypeCase.decode(str(self.f)) == self.f
def test_decode_RETURN_UNICODE(self): assert GenericTypeCase.decode(unicode(self.u)) == self.u
def test_decode_RETURN_INT(self): assert GenericTypeCase.decode(str(self.i)) == self.i
def test_decode_RETURN_NONE(self): assert GenericTypeCase.decode(None) is None
def test_decode_RETURN_STRING(self): assert GenericTypeCase.decode(str(self.s)) == self.s
def test_decode_RETURN_FLOAT(self): assert GenericTypeCase.decode(str(self.f)) == self.f
def test_decode_RAISE_when_INPUT_WRONG_TYPE(self): with self.assertRaises(AssertionError): GenericTypeCase.decode(self.l)
def test_decode_RETURN_LONG(self): assert GenericTypeCase.decode(str(self.l)) == self.l
def test_decode_RETURN_INT(self): assert GenericTypeCase.decode(str(self.i)) == self.i
def test_decode_RETURN_UNICODE(self): assert GenericTypeCase.decode(unicode(self.u)) == self.u
def test_decode_RETURN_STRING(self): assert GenericTypeCase.decode(str(self.s)) == self.s
def test_decode_RETURN_NONE(self): assert GenericTypeCase.decode(None) is None