def METHOD_NAME(self):
    self.login_as(self.user)
    self.group_id = self.group.id
    self.group_name = self.group.group_name
    self.repo_id = self.repo.id
    self.url = reverse('api-v2.1-groups')
    # share repo to group
    seafile_api.set_group_repo(self.repo_id,
                               self.group_id, self.user.email, 'rw')