def test_openstack_not_installed_fails(monkeypatch):
    logger = logging.getLogger(__name__)
    logger.info("Start")
    monkeypatch.setattr(subprocess, "Popen", PopenMockFailRC)
    with pytest.raises(ImportError):
        TasksScheduler.check_openstack_version()
    logger.info("End")
def test_newer_openstack_version_pass(monkeypatch):
    logger = logging.getLogger(__name__)
    logger.info("Start")
    monkeypatch.setattr(subprocess, "Popen", PopenMockPass)
    TasksScheduler.check_openstack_version()
    logger.info("End")