Beispiel #1
0
    def testGetFormatStringAttributeNames(self):
        """Tests the GetFormatStringAttributeNames function."""
        event_formatter = sam_users.SAMUsersWindowsRegistryEventFormatter()

        expected_attribute_names = [
            'account_rid', 'comments', 'fullname', 'key_path', 'login_count',
            'username'
        ]

        self._TestGetFormatStringAttributeNames(event_formatter,
                                                expected_attribute_names)
Beispiel #2
0
 def testInitialization(self):
     """Tests the initialization."""
     event_formatter = sam_users.SAMUsersWindowsRegistryEventFormatter()
     self.assertIsNotNone(event_formatter)