source:
pyson/test/JsonTypeInfoTest.py@
140
Last change on this file since 140 was 138, checked in by , 4 years ago | |
---|---|
File size: 396 bytes |
Line | |
---|---|
1 | import unittest |
2 | from packson3.JsonTypeInfo import Id,As, JsonTypeInfo |
3 | |
4 | |
5 | class 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.