source:
packson/test/JsonToolsTest.py@
134
Last change on this file since 134 was 134, checked in by , 4 years ago | |
---|---|
File size: 328 bytes |
Rev | Line | |
---|---|---|
[134] | 1 | import unittest |
2 | from packson.JsonTools import getInitArgs | |
3 | ||
4 | ||
5 | class 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.