def test_parse_for_well_formed(self, comm, result): assert(parse_for(comm) == result)
def test_parse_for_malformed(self, comm): with pytest.raises(exceptions.YamlSyntaxError): parse_for(comm)
def test_for_control_line_parsing(self, control_line, output): # there's a pretty complicated regexp for checking the control line, so let's # check some of the correct variants assert parse_for(control_line) == output
def test_parse_for_well_formed(self, comm, result): assert (parse_for(comm) == result)