LEFT | RIGHT |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- | 2 # -*- coding: utf-8 -*- |
3 """Tests for the spotlight plist plugin.""" | 3 """Tests for the spotlight plist plugin.""" |
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 plist # pylint: disable=unused-import | 9 from plaso.formatters import plist # pylint: disable=unused-import |
10 from plaso.parsers.plist_plugins import spotlight | 10 from plaso.parsers.plist_plugins import spotlight |
11 | 11 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 '(/Applications/Utilities/Grab.app)') | 48 '(/Applications/Utilities/Grab.app)') |
49 self.assertEqual(event.desc, expected_description) | 49 self.assertEqual(event.desc, expected_description) |
50 | 50 |
51 expected_message = '/UserShortcuts/gr {0:s}'.format(expected_description) | 51 expected_message = '/UserShortcuts/gr {0:s}'.format(expected_description) |
52 expected_short_message = '{0:s}...'.format(expected_message[:77]) | 52 expected_short_message = '{0:s}...'.format(expected_message[:77]) |
53 self._TestGetMessageStrings(event, expected_message, expected_short_message) | 53 self._TestGetMessageStrings(event, expected_message, expected_short_message) |
54 | 54 |
55 | 55 |
56 if __name__ == '__main__': | 56 if __name__ == '__main__': |
57 unittest.main() | 57 unittest.main() |
LEFT | RIGHT |