diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_postprocessor.py | 4 | ||||
| -rw-r--r-- | test/test_util.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test/test_postprocessor.py b/test/test_postprocessor.py index b64df88..fb1d739 100644 --- a/test/test_postprocessor.py +++ b/test/test_postprocessor.py @@ -365,8 +365,8 @@ class MetadataTest(BasePostprocessorTest): self._create( {"mode": "tags"}, {"tags": [ - {"g": "foobar1", "m": "foobar2"}, - {"g": None, "m": "foobarbaz"} + {"g": "foobar1", "m": "foobar2", "u": True}, + {"g": None, "m": "foobarbaz", "u": [3, 4]}, ]}, ) with patch("builtins.open", mock_open()) as m: diff --git a/test/test_util.py b/test/test_util.py index 0813a0b..780f475 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -750,6 +750,7 @@ def hash(value): self.assertIs(obj(), obj) self.assertIs(obj(1, "a"), obj) self.assertIs(obj(foo="bar"), obj) + self.assertEqual(util.json_dumps(obj), "null") i = 0 for _ in obj: |
