def test_add_bogus_region(self):
     ami_map = AmiRegionMap()
     ami_map.add_ami_map('BIGGLES', {'anthrax': 'ami-deadbeef'})
     self.assertNotIn('anthrax', ami_map)
 def test_add_single_region_mapping(self):
     ami_map = AmiRegionMap()
     ami_map.add_ami_map('BIGGLES', {'us-east-1': 'ami-deadbeef'})
     self.assertEqual('ami-deadbeef', ami_map['us-east-1']['BIGGLES'])
 def test_add_to_one_region_not_in_another(self):
     ami_map = AmiRegionMap()
     ami_map.add_ami_map('BIGGLES', {'us-east-1': 'ami-deadbeef'})
     self.assertNotIn('BIGGLES', ami_map['us-west-1'])