def METHOD_NAME(self):
    result = Mock()
    self.xml_state.get_luks_credentials = Mock(
        return_value='foo'
    )
    self.disk_format.store_to_result(result)
    assert result.add.call_args_list == [
        call(
            compress=False,
            filename='target_dir/some-disk-image.x86_64-1.2.3.vmdk',
            key='disk_format_image',
            shasum=True,
            use_for_bundle=True
        ),
        call(
            compress=False,
            filename='target_dir/some-disk-image.x86_64-1.2.3.vmx',
            key='disk_format_machine_settings',
            shasum=False,
            use_for_bundle=True
        )
    ]
    self.xml_state.get_luks_credentials = Mock(
        return_value=None
    )