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

Unified Diff: tests/parsers/winreg_plugins/mountpoints.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/mountpoints.py
diff --git a/tests/parsers/winreg_plugins/mountpoints.py b/tests/parsers/winreg_plugins/mountpoints.py
index 5ced7ff1bc1d0a8797f355c48432aadfddd3871d..ad87c66537ef8f130b4dad76af1281c7742a9987 100644
--- a/tests/parsers/winreg_plugins/mountpoints.py
+++ b/tests/parsers/winreg_plugins/mountpoints.py
@@ -17,6 +17,17 @@ from tests.parsers.winreg_plugins import test_lib
class MountPoints2PluginTest(test_lib.RegistryPluginTestCase):
"""Tests for the MountPoints2 Windows Registry plugin."""
+ def testFilters(self):
+ """Tests the FILTERS class attribute."""
+ plugin = mountpoints.MountPoints2Plugin()
+
+ key_path = (
+ 'HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\'
+ 'Explorer\\MountPoints2')
+ self._AssertFiltersOnKeyPath(plugin, key_path)
+
+ self._AssertNotFiltersOnKeyPath(plugin, 'HKEY_LOCAL_MACHINE\\Bogus')
+
@shared_test_lib.skipUnlessHasTestFile(['NTUSER-WIN7.DAT'])
def testProcess(self):
"""Tests the Process function."""

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