def test_comment_stripper_removes_comment_at_end_of_line(): string = 'random text # <- thats really random xD' assert ignore.strip_comments(string) == 'random text'
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