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