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