def METHOD_NAME(self):
    if not LOCAL_PRO_DEV_ENV:
        return
    # create a department
    group_id = ccnet_api.create_group('department_test', 'system admin', parent_group_id=-1)
    seafile_api.set_group_quota(group_id, -2)
    repo_id = seafile_api.add_group_owned_repo(group_id, 'dep_test', 'rw')
    repo_owner = seafile_api.get_repo_owner(repo_id)
    assert '@seafile_group' in repo_owner
    group_repos = seafile_api.get_repos_by_group(group_id)
    assert len(group_repos) == 1
    group = ccnet_api.get_group(group_id)
    # department add user
    ccnet_api.group_add_member(group_id, group.creator_name, self.user_name)
    ccnet_api.group_add_member(group_id, group.creator_name, self.tmp_user.username)
    ccnet_api.group_set_admin(group_id, self.user_name)
    ccnet_api.group_unset_admin(group_id, self.tmp_user.username)
    assert is_group_admin(group_id, self.user_name)
    assert not is_group_admin(group_id, self.tmp_user.username)
    file_name = 'dep_test.txt'
    self.create_file(
        repo_id=repo_id, parent_dir='/', filename=file_name, username=self.user_name)
    # delete a file first
    seafile_api.del_file(repo_id, '/',
                         json.dumps([file_name]),
                         self.user_name)
    # get trash item count
    self.login_as(self.user)
    resp = self.client.get(reverse('api-v2.1-repo-trash', args=[repo_id]))
    json_resp = json.loads(resp.content)
    assert len(json_resp['data']) > 0
    # department member can not clean trash
    self.logout()
    self.login_as(self.tmp_user)
    resp = self.client.delete(self.url)
    self.assertEqual(403, resp.status_code)
    # department admin can clean library trash
    self.logout()
    self.login_as(self.user)
    ccnet_api.group_set_admin(group_id, self.user_name)
    resp = self.client.delete(self.url)
    self.assertEqual(200, resp.status_code)
    # get trash item count again
    resp = self.client.get(self.url)
    json_resp = json.loads(resp.content)
    assert len(json_resp['data']) == 0