#NEWLINE# def test_create_pull( self ) : #NEWLINE# #INDENT# 'Test the ability to create a pull request on a repository.' #NEWLINE# self . token_login ( ) #NEWLINE# cassette_name = self . cassette_name ( 'create_pull' ) #NEWLINE# with self . recorder . use_cassette ( cassette_name ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'sigmavirus24' , 'github3.py' ) #NEWLINE# pull_request = repository . create_pull ( title = 'Migrate some test cases from test_repo_repo' , base = 'develop' , head = 'itsmemattchung:tests/migrate-repos' , body = 'Migrated create_pull to tests/unit' ) #NEWLINE# #UNINDENT# assert isinstance ( pull_request , github3 . pulls . PullRequest )