def test_update(self):
        self.token_login()
        cassette_name = self.cassette_name('update')
        with self.recorder.use_cassette(cassette_name):
            repository = self.gh.repository('github3py', 'delete_contents')
            content = repository.readme()
            update = content.update(message='Updating README.md',
                                    content=b'HELLO')

        assert isinstance(update, dict)
        assert isinstance(update['content'], github3.repos.contents.Contents)
        assert isinstance(update['commit'], github3.git.Commit)
Return whether the url has an extension (unreliable in some cases)
dataset/ETHPy150Open sigmavirus24/github3.py/tests/integration/test_repos_repo.py/TestContents.test_update--crossover with--dataset/ETHPy150Open huntrar/scrape/scrape/utils.py/has_ext