source: pyson/test/JsonTypeInfoTest.py@ 140

Last change on this file since 140 was 138, checked in by wouter, 4 years ago

#56 rename to packson3

File size: 396 bytes
Line 
1import unittest
2from packson3.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.