예제 #1
0
    def testParseValueData(self):
        """Tests the _ParseValueData function."""
        plugin = windows.WindowsCodepagePlugin()
        knowledge_base = self._RunPreprocessorPluginOnWindowsRegistryValueSystem(
            plugin)

        self.assertEqual(knowledge_base.codepage, u'cp1252')
예제 #2
0
파일: windows.py 프로젝트: tavernier/plaso
  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')
예제 #3
0
파일: windows.py 프로젝트: hyuunnn/plaso
    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')