Last change
on this file since 1394 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 | |
---|
1 | import unittest
|
---|
2 | from pyson.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.