#NEWLINE# def test_create_commit( self ) : #NEWLINE# #INDENT# 'Test the ability to create a commit.' #NEWLINE# self . token_login ( ) #NEWLINE# cassette_name = self . cassette_name ( 'create_commit' ) #NEWLINE# with self . recorder . use_cassette ( cassette_name ) : #NEWLINE# #INDENT# repository = self . gh . repository ( 'itsmemattchung' , 'github3.py' ) #NEWLINE# data = { #NEWLINE# #INDENT# 'message' : 'My commit message' , #NEWLINE# 'author' : { #NEWLINE# #INDENT# 'name' : 'Matt Chung' , #NEWLINE# 'email' : 'foo@example.com' , #NEWLINE# 'date' : '2015-12-03T16:13:30+12:00' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'parents' : [ '679358c79005523246ec3f460410ceda6b94e006' ] , #NEWLINE# 'tree' : '6857122c4eff3ea461516c066f6bb1eba206d694' , #NEWLINE# #UNINDENT# } #NEWLINE# commit = repository . create_commit ( ** self ) #NEWLINE# assert isinstance ( commit , github3 . git . Commit )