import unittest from pyson.JsonTypeInfo import Id,As, JsonTypeInfo class JsonTypeInfoTest(unittest.TestCase): def testSmoke(self): x=Id.NAME y=As.WRAPPER_OBJECT def testAnnotation(self): @JsonTypeInfo(use=Id.NAME, include=As.WRAPPER_OBJECT) class Anno1: pass self.assertTrue(hasattr(Anno1, '__jsontypeinfo__'))