示例#1
0
 def test_doesnt_break_comment_lines(self):
     assert strip_comments('# normal comment') == '# normal comment'
示例#2
0
 def test_doesnt_break_trailing_slashes(self):
     assert strip_comments('a_url/') == 'a_url/'
示例#3
0
 def test_strips_python_comments(self):
     assert strip_comments('foo #') == 'foo'
     assert strip_comments('foo  #') == 'foo'
示例#4
0
 def test_strips_js_comments(self):
     assert strip_comments('foo //') == 'foo'
     assert strip_comments('foo  //') == 'foo'
示例#5
0
 def test_doesnt_break_comment_lines(self):
     assert strip_comments('# normal comment') == '# normal comment'
示例#6
0
 def test_doesnt_break_trailing_slashes(self):
     assert strip_comments('a_url/') == 'a_url/'
示例#7
0
 def test_strips_js_comments(self):
     assert strip_comments('foo //') == 'foo'
     assert strip_comments('foo  //') == 'foo'
示例#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"