'Create a volume type.'

def _create_volume_type(self, ctxt=None, id=fake.VOLUME_TYPE_ID, name='test_volume_type', description='this    is    a    test    volume    type', extra_specs={'test_key': 'test_val'}, testcase_instance=None, **kwargs):

    ctxt = (ctxt or self.ctxt)
    vol_type = utils.create_volume_type(ctxt, testcase_instance=testcase_instance, id=id, name=name, description=description, extra_specs=extra_specs, **kwargs)
    return vol_type
