646
654
self.mock_util.load_file.assert_has_calls(expected_calls)
647
655
self.assertEqual(sorted(['/dev/vda', '/dev/vdb']), sorted(devs))
649
658
@patch('curtin.block.mdadm.os.path.exists')
652
661
mock_exists.return_value = False
653
663
with self.assertRaises(OSError):
654
664
mdadm.md_get_devices_list(mdname)