def test_get_catch_vars_malformed(self, input): with pytest.raises(YamlSyntaxError): get_catch_vars(input)
def test_get_catch_vars_ok(self, input, output): assert get_catch_vars(input) == output