def test_parsing(self): """Parse all lines in file""" for line in self.data[1:]: LogEntries.parse_line(line, LogEntries.default_format)
def test_full_parsing(self): """class method from_file() should coupe with broken files""" self.assertNotEqual(LogEntries.from_file(self.filename), None)
def setUp(self): self.entries = LogEntries.from_file(os.path.join(CWD, 'httpd-access-test.log'))