'Test the ability to update a file\'s content from a repository.'

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')
        repository.create_file('test.txt', 'Create    test.txt', 'testing')
        content = repository.file_contents('test.txt')
        update = content.update(message='Updating    test.txt', content='HELLO')
        assert isinstance(update, dict)
        assert isinstance(update['content'], github3.repos.contents.Contents)
        assert isinstance(update['commit'], github3.git.Commit)
        update['content'].delete('Deleting    test.txt    from    repository')
