source: pyson/test/JsonToolsTest.py@ 140

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

#56 rename to packson3

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