import unittest from pyson.JsonTools import getInitArgs class JsonToolsTest(unittest.TestCase): def testGetInitArgs(self): class ClassWithInitVars: def __init__(self, x:int): y=2 self.assertEquals({"x":int}, getInitArgs(ClassWithInitVars))