'Test create volume from an image of the same size.
Verify that an image which is exactly the same size as the
volume, will work correctly.'

def test_create_volume_from_exact_sized_image(self):

    try:
        volume_id = None
        volume_api = cinder.volume.api.API(image_service=FakeImageService())
        volume = volume_api.create(self.context, 2, 'name', 'description', image_id=self.FAKE_UUID)
        volume_id = volume['id']
        self.assertEqual('creating', volume['status'])
    finally:
        db.volume_destroy(self.context, volume_id)
