Index: tests/parsers/winreg_plugins/windows_version.py |
diff --git a/tests/parsers/winreg_plugins/windows_version.py b/tests/parsers/winreg_plugins/windows_version.py |
index b5408ab9100561ccfc304716a058b7544d22470e..5fce325a1d88d3aad8c5b08880831f840110d84b 100644 |
--- a/tests/parsers/winreg_plugins/windows_version.py |
+++ b/tests/parsers/winreg_plugins/windows_version.py |
@@ -70,6 +70,16 @@ class WindowsVersionPluginTest(test_lib.RegistryPluginTestCase): |
return registry_key |
+ def testFilters(self): |
+ """Tests the FILTERS class attribute.""" |
+ plugin = windows_version.WindowsVersionPlugin() |
+ |
+ key_path = ( |
+ 'HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion') |
+ self._AssertFiltersOnKeyPath(plugin, key_path) |
+ |
+ self._AssertNotFiltersOnKeyPath(plugin, 'HKEY_LOCAL_MACHINE\\Bogus') |
+ |
def testProcess(self): |
"""Tests the Process function.""" |
key_path = ( |