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

Unified Diff: tests/parsers/winreg_plugins/lfu.py

Issue 333570043: [plaso] Added Window Registry parser plugin filters tests #1668 (Closed)
Patch Set: Changes after review Created 6 years, 1 month 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
Index: tests/parsers/winreg_plugins/lfu.py
diff --git a/tests/parsers/winreg_plugins/lfu.py b/tests/parsers/winreg_plugins/lfu.py
index b728b7702dc1f3d3df79091d85c74766fe149312..b5111836effdda435be892627793bd79eed75269 100644
--- a/tests/parsers/winreg_plugins/lfu.py
+++ b/tests/parsers/winreg_plugins/lfu.py
@@ -92,6 +92,16 @@ class TestBootExecutePlugin(test_lib.RegistryPluginTestCase):
return registry_key
+ def testFilters(self):
+ """Tests the FILTERS class attribute."""
+ plugin = lfu.BootExecutePlugin()
+
+ key_path = (
+ 'HKEY_LOCAL_MACHINE\\System\\ControlSet001\\Control\\Session Manager')
+ self._AssertFiltersOnKeyPath(plugin, key_path)
+
+ self._AssertNotFiltersOnKeyPath(plugin, 'HKEY_LOCAL_MACHINE\\Bogus')
+
def testProcess(self):
"""Tests the Process function."""
key_path = (
@@ -166,6 +176,17 @@ class TestBootVerificationRegistry(test_lib.RegistryPluginTestCase):
return registry_key
+ def testFilters(self):
+ """Tests the FILTERS class attribute."""
+ plugin = lfu.BootVerificationPlugin()
+
+ key_path = (
+ 'HKEY_LOCAL_MACHINE\\System\\ControlSet001\\Control\\'
+ 'BootVerificationProgram')
+ self._AssertFiltersOnKeyPath(plugin, key_path)
+
+ self._AssertNotFiltersOnKeyPath(plugin, 'HKEY_LOCAL_MACHINE\\Bogus')
+
def testProcess(self):
"""Tests the Process function."""
key_path = '\\ControlSet001\\Control\\BootVerificationProgram'

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