Example #1
0
 def test_missing(self, config_proxy):
     config_proxy.CLOUD = {}
     assert available_regions() is None
Example #2
0
 def test_ok(self, config_proxy):
     config_proxy.get_cloud.return_value = {
         'REGIONS': sentinel.regions,
     }
     assert available_regions() == sentinel.regions
Example #3
0
 def test_ok(self, config_proxy):
     config_proxy.CLOUD = {
         'REGIONS': sentinel.regions,
     }
     assert available_regions() == sentinel.regions
Example #4
0
 def test_missing(self, config_proxy):
     config_proxy.get_cloud.return_value = {}
     assert available_regions() is None