示例#1
0
def run_bug_parse(content):
    with fixtures.TempDir() as tmpdir:
        file_name = os.path.join(tmpdir, 'test.html')
        with open(file_name, 'w') as handle:
            handle.writelines(content)
        for bug in sut.parse_bug_html(file_name):
            return bug
示例#2
0
def run_bug_parse(content):
    with libear.temporary_directory() as tmp_dir:
        file_name = os.path.join(tmp_dir, 'test.html')
        with open(file_name, 'w') as handle:
            lines = (line + os.linesep for line in content)
            handle.writelines(lines)
        for bug in sut.parse_bug_html(file_name):
            return bug
示例#3
0
def run_bug_parse(content):
    with libear.temporary_directory() as tmp_dir:
        file_name = os.path.join(tmp_dir, 'test.html')
        with open(file_name, 'w') as handle:
            lines = (line + os.linesep for line in content)
            handle.writelines(lines)
        for bug in sut.parse_bug_html(file_name):
            return bug