source: pyson/test/JsonToolsTest.py@ 141

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

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

File size: 326 bytes
RevLine 
[134]1import unittest
[141]2from pyson.JsonTools import getInitArgs
[134]3
4
5class JsonToolsTest(unittest.TestCase):
6 def testGetInitArgs(self):
7 class ClassWithInitVars:
8 def __init__(self, x:int):
9 y=2
10
11 self.assertEquals({"x":int}, getInitArgs(ClassWithInitVars))
12
Note: See TracBrowser for help on using the repository browser.