def test_exception(self, value, schema, expected): with pytest.raises(expected): JsonLoader.loads(value, schema)
def test_normal(self, tmpdir, value, schema, expected): p = tmpdir.join(TEMP_FILE_NAME) p.write(value) assert JsonLoader.load(str(p), schema) == expected
def test_normal(self, value, schema, expected): assert JsonLoader.loads(value, schema) == expected