#NEWLINE# def test_prefix_prefix( self ) : #NEWLINE# #INDENT# repository = self . _create_repository ( ) #NEWLINE# revision = self . create_revision ( repository = repository , sha = self . sha ) #NEWLINE# assert ( Revision . get_by_sha_prefix_query ( repository . id , '73a5' ) . scalar ( ) == revision )