#!/usr/bin/env python # # Copyright (c) 2010 Corey Goldberg (corey@goldb.org) # License: GNU LGPLv3 # # This file is part of Multi-Mechanize # class Report(object): def __init__(self, results_dir): self.results_dir = results_dir self.fn = results_dir + 'results.html' self.write_head_html() def write_line(self, line): with open(self.fn, 'a') as f: f.write('%s\n' % line) def write_head_html(self): with open(self.fn, 'w') as f: f.write("""\ Multi-Mechanize - Results """) def write_closing_html(self): with open(self.fn, 'a') as f: f.write("""\ """)