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

Unified Diff: tests/parsers/winreg_plugins/network_drives.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/network_drives.py
diff --git a/tests/parsers/winreg_plugins/network_drives.py b/tests/parsers/winreg_plugins/network_drives.py
index 8bf2c22661a407ce7856773f8db3051303ba0b3d..449b9d81b8ef76f17f4f88a944fecd0bfc842a59 100644
--- a/tests/parsers/winreg_plugins/network_drives.py
+++ b/tests/parsers/winreg_plugins/network_drives.py
@@ -133,6 +133,14 @@ class NetworkDrivesPluginTest(test_lib.RegistryPluginTestCase):
return registry_key
+ def testFilters(self):
+ """Tests the FILTERS class attribute."""
+ plugin = network_drives.NetworkDrivesPlugin()
+
+ self._AssertFiltersOnKeyPath(plugin, 'HKEY_CURRENT_USER\\Network')
+
+ self._AssertNotFiltersOnKeyPath(plugin, 'HKEY_LOCAL_MACHINE\\Bogus')
+
def testProcess(self):
"""Tests the Process function on created key."""
key_path = 'HKEY_CURRENT_USER\\Network'

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