@classmethod
def fake_resource_type(cls):
    'Generate a random resource_type.'
    if (not cls._resource_type_ids):
        cls._resource_type_ids = []
        dir_ = Path(__file__).parent
        res_types = cls._read_vocabulary('resource_types')
        for res in res_types:
            cls._resource_type_ids.append(res['id'])
    random_id = random.choice(cls._resource_type_ids)
    return {'id': random_id}
Generate a random resource_type.
@classmethod
def fake_resource_type(cls):
    
    if (not cls._resource_type_ids):
        cls._resource_type_ids = []
        dir_ = Path(__file__).parent
        res_types = cls._read_vocabulary('resource_types')
        for res in res_types:
            cls._resource_type_ids.append(res['id'])
    random_id = random.choice(cls._resource_type_ids)
    return {'id': random_id}