source: pyson/test/JsonTypeInfoTest.py@ 1275

Last change on this file since 1275 was 141, checked in by wouter, 4 years ago

#60 change packson3 to pyson to avoid suggesting we're implementing jackson

File size: 393 bytes
Line 
1import unittest
2from pyson.JsonTypeInfo import Id,As, JsonTypeInfo
3
4
5class JsonTypeInfoTest(unittest.TestCase):
6 def testSmoke(self):
7 x=Id.NAME
8 y=As.WRAPPER_OBJECT
9
10 def testAnnotation(self):
11 @JsonTypeInfo(use=Id.NAME, include=As.WRAPPER_OBJECT)
12 class Anno1:
13 pass
14
15 self.assertTrue(hasattr(Anno1, '__jsontypeinfo__'))
16
Note: See TracBrowser for help on using the repository browser.