@add_fixtures(['test_site'])
    def test_get_with_site(self):
        self._login_user(local_site=True)
        repository = self.create_repository(with_local_site=True,
                                            tool_name='Test')

        rsp = self.api_get(
            get_repository_commits_url(repository, self.local_site_name),
            query={'start': 7},
            expected_mimetype=repository_commits_item_mimetype)
        self.assertEqual(len(rsp['commits']), 7)
        self.assertEqual(rsp['stat'], 'ok')
        self.assertEqual(rsp['commits'][0]['id'], '7')
        self.assertEqual(rsp['commits'][1]['message'], 'Commit 6')
Testing the GET repositories/<id>/commits/ API with a local site
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_repository_commits.py/ResourceTests.test_get_with_site