示例#1
0
def test_comment_stripper_removes_comment_at_end_of_line():
    string = 'random text # <- thats really random xD'
    assert ignore.strip_comments(string) == 'random text'
示例#2
0
def test_comment_stripper_removes_comment_at_end_of_line():
    string = 'random text # <- thats really random xD'
    assert ignore.strip_comments(string) == 'random text'
示例#3
0
def test_comment_stripper_when_comment_at_start_of_line():
    for i in range(1, 3):
        string = '#' + 'a' * i
        assert len(ignore.strip_comments(string)) == 0
示例#4
0
def test_comment_stripper_when_comment_at_start_of_line():
    for i in range(1, 3):
        string = '#' + 'a' * i
        assert len(ignore.strip_comments(string)) == 0