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.""" |