'Creates a volume in availability_zone.'

def test_create_volume_in_availability_zone(self):

    availability_zone = 'nova'
    created_volume = self.api.post_volume({'volume': {'size': 1, 'availability_zone': availability_zone}})
    self.assertTrue(uuidutils.is_uuid_like(created_volume['id']))
    created_volume_id = created_volume['id']
    found_volume = self.api.get_volume(created_volume_id)
    self.assertEqual(created_volume_id, found_volume['id'])
    self.assertEqual(availability_zone, found_volume['availability_zone'])
