Beispiel #1
0
 def test_parse_for_well_formed(self, comm, result):
     assert(parse_for(comm) == result)
Beispiel #2
0
 def test_parse_for_malformed(self, comm):
     with pytest.raises(exceptions.YamlSyntaxError):
         parse_for(comm)
Beispiel #3
0
 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
Beispiel #4
0
 def test_parse_for_well_formed(self, comm, result):
     assert (parse_for(comm) == result)
Beispiel #5
0
 def test_parse_for_malformed(self, comm):
     with pytest.raises(exceptions.YamlSyntaxError):
         parse_for(comm)
Beispiel #6
0
 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