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

Unified Diff: tests/parsers/winreg_plugins/programscache.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/programscache.py
diff --git a/tests/parsers/winreg_plugins/programscache.py b/tests/parsers/winreg_plugins/programscache.py
index 53d8db2c1911e8403db3ca1bea81a616bd00f2fc..90b0e4243189ff0a1f96f040b0b95fc6569973b4 100644
--- a/tests/parsers/winreg_plugins/programscache.py
+++ b/tests/parsers/winreg_plugins/programscache.py
@@ -18,6 +18,22 @@ from tests.parsers.winreg_plugins import test_lib
class ExplorerProgramCachePluginTest(test_lib.RegistryPluginTestCase):
"""Tests for the Explorer ProgramsCache Windows Registry plugin."""
+ def testFilters(self):
+ """Tests the FILTERS class attribute."""
+ plugin = programscache.ExplorerProgramsCachePlugin()
+
+ key_path = (
+ 'HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\'
+ 'Explorer\\StartPage')
+ self._AssertFiltersOnKeyPath(plugin, key_path)
+
+ key_path = (
+ 'HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\'
+ 'Explorer\\StartPage2')
+ self._AssertFiltersOnKeyPath(plugin, key_path)
+
+ self._AssertNotFiltersOnKeyPath(plugin, 'HKEY_LOCAL_MACHINE\\Bogus')
+
@shared_test_lib.skipUnlessHasTestFile(['NTUSER.DAT'])
def testProcessStartPage(self):
"""Tests the Process function on a StartPage key."""

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