Exemplo n.º 1
0
 def test_doesnt_break_comment_lines(self):
     assert strip_comments('# normal comment') == '# normal comment'
Exemplo n.º 2
0
 def test_doesnt_break_trailing_slashes(self):
     assert strip_comments('a_url/') == 'a_url/'
Exemplo n.º 3
0
 def test_strips_python_comments(self):
     assert strip_comments('foo #') == 'foo'
     assert strip_comments('foo  #') == 'foo'
Exemplo n.º 4
0
 def test_strips_js_comments(self):
     assert strip_comments('foo //') == 'foo'
     assert strip_comments('foo  //') == 'foo'
Exemplo n.º 5
0
 def test_doesnt_break_comment_lines(self):
     assert strip_comments('# normal comment') == '# normal comment'
Exemplo n.º 6
0
 def test_doesnt_break_trailing_slashes(self):
     assert strip_comments('a_url/') == 'a_url/'
Exemplo n.º 7
0
 def test_strips_js_comments(self):
     assert strip_comments('foo //') == 'foo'
     assert strip_comments('foo  //') == 'foo'
Exemplo n.º 8
0
 def test_strips_python_comments(self):
     assert strip_comments('foo #') == 'foo'
     assert strip_comments('foo  #') == 'foo'
 def test_doesnt_break_comment_lines(self):
     assert strip_comments("# normal comment") == "# normal comment"
 def test_strips_js_comments(self):
     assert strip_comments("foo //") == "foo"
     assert strip_comments("foo  //") == "foo"
 def test_strips_python_comments(self):
     assert strip_comments("foo #") == "foo"
     assert strip_comments("foo  #") == "foo"