#NEWLINE# def _single_artifact_set( self , manager , targets ) : #NEWLINE# #INDENT# sets = manager . targets_by_artifact_set ( targets ) #NEWLINE# sets = { t : tgts for ( a , tgts ) in sets . items ( ) if any ( ( isinstance ( t , JarLibrary ) for t in tgts ) ) } #NEWLINE# if ( len ( sets ) != 1 ) : #NEWLINE# #INDENT# raise ValueError ( 'Test expected there to be only one artifact set! {}' . format ( sets ) ) #NEWLINE# #UNINDENT# return next ( iter ( sets ) )