Ejemplo n.º 1
0
 def test_extract_type_safe(self):
     env = {'REGION': ['us-east-1', 'us-west-2']}
     regions = extract_regions([env])
     self.assertEquals(set(('us-east-1', 'us-west-2')), regions)
Ejemplo n.º 2
0
 def test_extract_type_safe(self):
     env = {"REGION": ["us-east-1", "us-west-2"]}
     regions = extract_regions([env])
     self.assertEquals(set(("us-east-1", "us-west-2")), regions)
Ejemplo n.º 3
0
 def test_extract_regions(self):
     env = {'REGION': 'us-east-1,us-west-2'}
     regions = extract_regions([env])
     self.assertEquals(set(('us-east-1', 'us-west-2')), regions)
     self.assertNotIn('REGION', env)
Ejemplo n.º 4
0
 def test_extract_regions(self):
     env = {"REGION": "us-east-1,us-west-2"}
     regions = extract_regions([env])
     self.assertEquals(set(("us-east-1", "us-west-2")), regions)
     self.assertNotIn("REGION", env)