def testGetFormatStringAttributeNames(self): """Tests the GetFormatStringAttributeNames function.""" event_formatter = winlnk.WinLnkLinkFormatter() expected_attribute_names = [ 'description', 'file_size', 'file_attribute_flags', 'drive_type', 'drive_serial_number', 'volume_label', 'local_path', 'network_path', 'command_line_arguments', 'env_var_location', 'relative_path', 'working_directory', 'icon_location', 'link_target' ] self._TestGetFormatStringAttributeNames(event_formatter, expected_attribute_names)
def testInitialization(self): """Tests the initialization.""" event_formatter = winlnk.WinLnkLinkFormatter() self.assertIsNotNone(event_formatter)