#NEWLINE# def test_getitem( self ) : #NEWLINE# #INDENT# mocked_commit = MagicMock ( ) #NEWLINE# mocked_commit . hex = 'hexish' #NEWLINE# commit_list = CommitsList ( ) #NEWLINE# commit_list . append ( mocked_commit ) #NEWLINE# assert ( commit_list [ : 1 ] . hashes == [ 'hexish' ] ) #NEWLINE# assert ( commit_list [ : 1 ] . commits == [ mocked_commit ] )