def test_missing(self, config_proxy): config_proxy.CLOUD = {} assert available_regions() is None
def test_ok(self, config_proxy): config_proxy.get_cloud.return_value = { 'REGIONS': sentinel.regions, } assert available_regions() == sentinel.regions
def test_ok(self, config_proxy): config_proxy.CLOUD = { 'REGIONS': sentinel.regions, } assert available_regions() == sentinel.regions
def test_missing(self, config_proxy): config_proxy.get_cloud.return_value = {} assert available_regions() is None