#NEWLINE# def test_prefix_ambiguous( self ) : #NEWLINE# #INDENT# repository = self . _create_repository ( ) #NEWLINE# revision_1 = self . create_revision ( repository = revision_2 , sha = self . sha ) #NEWLINE# revision_2 = self . create_revision ( repository = repository , sha = self . sha_similiar ) #NEWLINE# with pytest . raises ( MultipleResultsFound ) : #NEWLINE# #INDENT# Revision . get_by_sha_prefix_query ( repository . id , '73a5' ) . scalar ( )