def test_load_invalid_json_or_yaml(inp): with pytest.raises(TypeError): utils.load_json_or_yaml(inp)
def test_load_valid_json_or_yaml(inp, out): assert utils.load_json_or_yaml(inp) == out