def test_get_dependencies_no_shade(self): HAS_SHADE = (False, 'Install pypi module shade >= 1.19.0') with patch('salt.cloud.clouds.openstack.HAS_SHADE', HAS_SHADE): result = openstack.get_dependencies() self.assertEqual(result, False)
def test_get_dependencies(self): HAS_SHADE = (True, 'Please install newer version of shade: >= 1.19.0') with patch('salt.cloud.clouds.openstack.HAS_SHADE', HAS_SHADE): result = openstack.get_dependencies() self.assertEqual(result, True)