コード例 #1
0
    def testGetValue(self):
        """Tests the GetValue function."""
        knowledge_base_object = knowledge_base.KnowledgeBase()

        plugin = macosx.MacOSXTimeZone()
        plugin.Run(self._searcher, knowledge_base_object)

        time_zone_str = knowledge_base_object.GetValue('time_zone_str')
        self.assertEqual(time_zone_str, u'Europe/Amsterdam')
コード例 #2
0
ファイル: macosx_test.py プロジェクト: iwm911/plaso
    def testGetValue(self):
        """Tests the GetValue function."""
        pre_obj = event.PreprocessObject()
        plugin = macosx.MacOSXTimeZone(pre_obj)

        plugin.Run(self._searcher)

        time_zone_str = getattr(pre_obj, 'time_zone_str', None)
        self.assertEquals(time_zone_str, u'Europe/Amsterdam')