'Test extending a volume where Space does not need to be enlarged.
Because Spaces are generated somewhat larger than the requested size
from OpenStack due to the base10(HGST)/base2(OS) mismatch, they can
sometimes be larger than requested from OS.  In that case a
volume_extend may actually be a noop since the volume is already large
enough to satisfy OS\'s request.'

def test_extend_volume_noextend(self):

    ctxt = context.get_admin_context()
    extra_specs = {}
    type_ref = volume_types.create(ctxt, 'hgst-1', extra_specs)
    volume = {'id': '1', 'name': 'volume1', 'display_name': '', 'volume_type_id': type_ref['id'], 'size': 10, 'provider_id': 'volume10'}
    self.extended = {'name': '', 'size': '0', 'storageserver': ''}
    self.driver.extend_volume(volume, 10)
    expected = {'name': '', 'size': '0', 'storageserver': ''}
    self.assertDictEqual(expected, self.extended)
