We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a183d2 commit 9c5b3d6Copy full SHA for 9c5b3d6
1 file changed
json_minify/test_json_minify.py
@@ -65,22 +65,23 @@ class JsonMinifyTestCase(unittest.TestCase):
65
]
66
67
68
- def template(self, in_string, expected):
+ def template(self, index):
69
+ in_string, expected = self.tests[index - 1]
70
in_dict = json.loads(json_minify(in_string))
71
expected_dict = json.loads(textwrap.dedent(expected))
72
self.assertEqual(in_dict, expected_dict)
73
74
def test_1(self):
- self.template(*self.tests[0])
75
+ self.template(1)
76
77
def test_2(self):
- self.template(*self.tests[1])
78
+ self.template(2)
79
80
def test_3(self):
- self.template(*self.tests[2])
81
+ self.template(3)
82
83
def test_4(self):
- self.template(*self.tests[3])
84
+ self.template(4)
85
86
if __name__ == '__main__':
87
unittest.main()
0 commit comments