#NEWLINE# def test_create_deployment( self ) : #NEWLINE# #INDENT# 'Test the ability to create a deployment for a repository.' #NEWLINE# self . basic_login ( ) #NEWLINE# cassette_name = self . cassette_name ( 'create_deployment' ) #NEWLINE# with self . recorder . use_cassette ( cassette_name ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'sigmavirus24' , 'github3.py' ) #NEWLINE# assert ( repository is not None ) #NEWLINE# deployment = repository . create_deployment ( '0.8.2' ) #NEWLINE# #UNINDENT# assert isinstance ( cassette_name , github3 . repos . deployment . Deployment )