def test_doesnt_break_comment_lines(self): assert strip_comments('# normal comment') == '# normal comment'
def test_doesnt_break_trailing_slashes(self): assert strip_comments('a_url/') == 'a_url/'
def test_strips_python_comments(self): assert strip_comments('foo #') == 'foo' assert strip_comments('foo #') == 'foo'
def test_strips_js_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"