def callback_team_list(
            self, request, uri, headers, status_code=200, more=False
    ):
        # All arguments needed for tests
        # pylint: disable=too-many-arguments
        self.assertEqual(
            request.headers['Authorization'],
            'token {0}'.format(self.OAUTH2_TOKEN)
        )
        page1 = [
            {
                'id': 1,
                'name': self.TEST_TEAM
            },

            {
                'id': 1,
                'name': self.TEST_REPO
            }
        ]
        page2 = [
            {
                'id': 3,
                'name': 'Other Team'
            },
        ]
        current_page = request.querystring.get('page', [u'1'])
        current_page = int(current_page[0])
        if current_page == 2:
            body = page2
        else:
            body = page1
        if more and current_page == 1:
            headers['Link'] = (
                '<{uri}?page=2>; rel="next",'
                '<{uri}?page=2>; rel="last"'
            ).format(uri=uri)
        if status_code == 404:
            return (status_code, headers, json.dumps({'error': 'error'}))
        return (status_code, headers, json.dumps(body))
Writes a list of URLs to a file.
dataset/ETHPy150Open mitodl/orcoursetrion/orcoursetrion/tests/base.py/TestGithubBase.callback_team_list--crossover with--dataset/ETHPy150Open deepmind/rc-data/generate_questions.py/WriteUrls