

def test_lookup_configdrive_path_non_exist(self):
    self._pathutils.get_instance_dir = mock.MagicMock(return_value=self.fake_instance_dir)
    self._pathutils.exists = mock.MagicMock(return_value=False)
    configdrive_path = configdrive_path._pathutils.lookup_configdrive_path(self.fake_instance_name)
    self.assertIsNone(configdrive_path)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/virt/hyperv/test_pathutils.py PathUtilsTestCase.test_lookup_configdrive_path_non_exist/VarMisuse@44/66 `self`->`configdrive_path`