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