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