LEFT | RIGHT |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # -*- coding: utf-8 -*- | 2 # -*- coding: utf-8 -*- |
3 """Tests for the fseventsd record event formatter.""" | 3 """Tests for the fseventsd record event formatter.""" |
4 | 4 |
5 from __future__ import unicode_literals | 5 from __future__ import unicode_literals |
6 | 6 |
7 import unittest | 7 import unittest |
8 | 8 |
9 from plaso.formatters import fseventsd | 9 from plaso.formatters import fseventsd |
10 | 10 |
11 from tests.formatters import test_lib | 11 from tests.formatters import test_lib |
12 | 12 |
13 | 13 |
14 class FirefoxCookieFormatterTest(test_lib.EventFormatterTestCase): | 14 class FseventsdFormatterTest(test_lib.EventFormatterTestCase): |
15 """Tests for the fseventsd record event formatter.""" | 15 """Tests for the fseventsd record event formatter.""" |
16 | 16 |
17 def testInitialization(self): | 17 def testInitialization(self): |
18 """Tests the initialization.""" | 18 """Tests the initialization.""" |
19 event_formatter = fseventsd.FSEventsdEventFormatter() | 19 event_formatter = fseventsd.FSEventsdEventFormatter() |
20 self.assertIsNotNone(event_formatter) | 20 self.assertIsNotNone(event_formatter) |
21 | 21 |
22 def testGetFormatStringAttributeNames(self): | 22 def testGetFormatStringAttributeNames(self): |
23 """Tests the GetFormatStringAttributeNames function.""" | 23 """Tests the GetFormatStringAttributeNames function.""" |
24 event_formatter = fseventsd.FSEventsdEventFormatter() | 24 event_formatter = fseventsd.FSEventsdEventFormatter() |
25 | 25 |
26 expected_attribute_names = [ | 26 expected_attribute_names = [ |
27 'object_type', 'path', 'event_types', 'event_identifier'] | 27 'object_type', 'path', 'event_types', 'event_identifier'] |
28 | 28 |
29 self._TestGetFormatStringAttributeNames( | 29 self._TestGetFormatStringAttributeNames( |
30 event_formatter, expected_attribute_names) | 30 event_formatter, expected_attribute_names) |
31 | 31 |
32 # TODO: add test for GetMessages. | 32 # TODO: add test for GetMessages. |
33 # TODO: add test for GetSources. | 33 # TODO: add test for GetSources. |
34 | 34 |
35 | 35 |
36 if __name__ == '__main__': | 36 if __name__ == '__main__': |
37 unittest.main() | 37 unittest.main() |
LEFT | RIGHT |