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