def METHOD_NAME(self, mock_vmdk, mock_command):
    vmdk = Mock()
    vmdk.image_format = 'vmdk'
    mock_vmdk.return_value = vmdk
    # override the box settings to match those from the extracted ovf file
    self.xml_state.xml_data.name = "OpenSUSE-Leap-15.0"
    self.xml_state.get_description_section = MagicMock()
    self.xml_state.get_description_section.return_value = \
        namedtuple(
            'description_type', ['author', 'contact', 'specification']
        )(
            author="not relevant",
            contact="not relevant",
            specification="OpenSUSE Leap 15.0"
        )
    m_open = mock_open()
    with patch('builtins.open', m_open, create=True):
        assert self.disk_format.create_box_img('tmpdir') == [
            'tmpdir/box.vmdk', 'tmpdir/box.ovf'
        ]
    vmdk.create_image_format.assert_called_once_with()
    mock_command.assert_called_once_with(
        [
            'mv', 'target_dir/some-disk-image.x86_64-1.2.3.vmdk',
            'tmpdir/box.vmdk'
        ]
    )
    m_open.assert_called_once_with('tmpdir/box.ovf', 'w')
    assert m_open.return_value.write.call_args_list[0] == call(self.Leap_15_ovf)