# Pastebin 0MbMHn35 ironic_python_agent.tests.unit.test_partition_utils.CreateConfigDriveTestCases.test__create_partition_mbr_disk_under_2TB ------------------------------------------------------------------------------------------------------------------------ Captured traceback: ~~~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "/home/jkreger/code/ironic-python-agent/ironic_python_agent/tests/unit/test_partition_utils.py", line 947, in test__create_partition_mbr_disk_under_2TB self._test_create_partition_mbr(disk_size_exceeds_max=False, File "/usr/lib/python3.11/unittest/mock.py", line 1369, in patched return func(*newargs, **newkeywargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jkreger/code/ironic-python-agent/ironic_python_agent/tests/unit/test_partition_utils.py", line 928, in _test_create_partition_mbr mock_execute.assert_has_calls([ File "/usr/lib/python3.11/unittest/mock.py", line 216, in assert_has_calls return mock.assert_has_calls(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/mock.py", line 970, in assert_has_calls raise AssertionError( AssertionError: Calls not found. Expected: [call('parted', '-a', 'optimal', '-s', '--', '/dev/iqn.2008-10.org.openstack:12345678-1234-1234-1234-1234567890abcxyz.fake', 'mkpart', 'primary', 'fat32', '-64MiB', '-0'), call('sync'), call('udevadm', 'settle'), call('partprobe', '/dev/iqn.2008-10.org.openstack:12345678-1234-1234-1234-1234567890abcxyz.fake', attempts=10, run_as_root=True), call('sgdisk', '-v', '/dev/iqn.2008-10.org.openstack:12345678-1234-1234-1234-1234567890abcxyz.fake', run_as_root=True), call('udevadm', 'settle'), call('test', '-e', '/dev/iqn.2008-10.org.openstack:12345678-1234-1234-1234-1234567890abcxyz.fake-part4', attempts=15, delay_on_retry=True)] Actual: [call('parted', '-a', 'optimal', '-s', '--', '/dev/iqn.2008-10.org.openstack:12345678-1234-1234-1234-1234567890abcxyz.fake', 'mkpart', 'primary', 'fat32', '-64MiB', '-0'), call('sync'), call('udevadm', 'settle'), call('partprobe', '/dev/iqn.2008-10.org.openstack:12345678-1234-1234-1234-1234567890abcxyz.fake', run_as_root=True, attempts=10), call('udevadm', 'settle'), call('sgdisk', '-v', '/dev/iqn.2008-10.org.openstack:12345678-1234-1234-1234-1234567890abcxyz.fake', run_as_root=True), call('udevadm', 'settle'), call('test', '-e', '/dev/iqn.2008-10.org.openstack:12345678-1234-1234-1234-1234567890abcxyz.fake-part4', attempts=15, delay_on_retry=True), call('mount', '-o', 'ro', '-t', 'auto', '/dev/iqn.2008-10.org.openstack:12345678-1234-1234-1234-1234567890abcxyz.fake-part4', '/tmp/tmphbif5ev2/tmphi1_hm2p'), call('umount', '/tmp/tmphbif5ev2/tmphi1_hm2p')]