'Create a test group-type'

def create_group_type(self, name=None, **kwargs):

    name = (name or data_utils.rand_name((self.__class__.__name__ + '-group-type')))
    group_type = self.admin_group_types_client.create_group_type(name=name, **kwargs)['group_type']
    self.addCleanup(self.admin_group_types_client.delete_group_type, group_type['id'])
    return group_type
