def testParseValueData(self): """Tests the _ParseValueData function.""" plugin = windows.WindowsCodepagePlugin() knowledge_base = self._RunPreprocessorPluginOnWindowsRegistryValueSystem( plugin) self.assertEqual(knowledge_base.codepage, u'cp1252')
def testParseValueData(self): """Tests the _ParseValueData function.""" test_file_path = self._GetTestFilePath(['SYSTEM']) self._SkipIfPathNotExists(test_file_path) plugin = windows.WindowsCodepagePlugin() knowledge_base_object = ( self._RunPreprocessorPluginOnWindowsRegistryValueSystem(plugin)) self.assertEqual(knowledge_base_object.codepage, 'cp1252')
def testParseValueData(self): """Tests the _ParseValueData function.""" test_file_path = self._GetTestFilePath(['SYSTEM']) self._SkipIfPathNotExists(test_file_path) storage_writer = self._CreateTestStorageWriter() plugin = windows.WindowsCodepagePlugin() test_mediator = self._RunPreprocessorPluginOnWindowsRegistryValueSystem( storage_writer, plugin) self.assertEqual(storage_writer.number_of_preprocessing_warnings, 0) self.assertEqual(test_mediator.knowledge_base.codepage, 'cp1252')