示例#1
0
 def test_drop_lines(self):
     config = Config()
     config.drop_lines = ['# ignore me']
     self.go_exact(config, [
         start, 'test', newline, A,
         '# ignore me, this comment is unhelpful\n', B, C, stop,
         'other stuff'
     ])
示例#2
0
 def test_drop_lines(self):
     config = Config()
     config.drop_lines = ["# ignore me"]
     self.go_exact(
         config, [start, "test", newline, A, "# ignore me, this comment is unhelpful\n", B, C, stop, "other stuff"]
     )