Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1059)

Unified Diff: tests/analysis/tagging.py

Issue 341340043: [plaso] Replaced CopyToDatetime in output modules by dfdatetime (Closed)
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « setup.cfg ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/analysis/tagging.py
diff --git a/tests/analysis/tagging.py b/tests/analysis/tagging.py
index c5b6e29a92a38da05b6cb9103c90a010a21b7aba..f38446b1dd8a4345d9c7d8256b1446c27ea3f3bf 100644
--- a/tests/analysis/tagging.py
+++ b/tests/analysis/tagging.py
@@ -74,18 +74,18 @@ class TaggingAnalysisPluginTest(test_lib.AnalysisPluginTestCase):
EventObject: event with the appropriate attributes for testing.
"""
if event_attributes['event_type'] == 'prefetch':
- event_object = TestPrefetchEvent()
+ event = TestPrefetchEvent()
elif event_attributes['event_type'] == 'chrome_download':
- event_object = TestChromeDownloadEvent()
+ event = TestChromeDownloadEvent()
elif event_attributes['event_type'] == 'evt':
- event_object = TestEvtRecordEvent()
+ event = TestEvtRecordEvent()
else:
- event_object = events.EventObject()
+ event = events.EventObject()
- event_object.timestamp = event_attributes['timestamp']
+ event.timestamp = event_attributes['timestamp']
for key, value in iter(event_attributes['attributes'].items()):
- setattr(event_object, key, value)
- return event_object
+ setattr(event, key, value)
+ return event
@shared_test_lib.skipUnlessHasTestFile(['tagging_file', 'valid.txt'])
def testExamineEventAndCompileReport(self):
« no previous file with comments | « setup.cfg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b