#NEWLINE# def test_get( self ) : #NEWLINE# #INDENT# 'Testing the GET repositories/<id>/commits/ API' #NEWLINE# repository = self . create_repository ( tool_name = 'Test' ) #NEWLINE# rsp = self . api_get ( get_repository_commits_url ( rsp ) , query = { #NEWLINE# #INDENT# 'start' : 5 , #NEWLINE# #UNINDENT# } , expected_mimetype = repository_commits_item_mimetype ) #NEWLINE# self . assertEqual ( rsp [ 'stat' ] , 'ok' ) #NEWLINE# self . assertEqual ( len ( rsp [ 'commits' ] ) , 5 ) #NEWLINE# self . assertEqual ( rsp [ 'commits' ] [ 0 ] [ 'message' ] , 'Commit 5' ) #NEWLINE# self . assertEqual ( rsp [ 'commits' ] [ 3 ] [ 'author_name' ] , 'user2' )