#NEWLINE# def test_managed_resolve( self ) : #NEWLINE# #INDENT# 'A managed resolve should consume a ManagedResolve and ManagedJars to produce Jars.' #NEWLINE# build_request = self . request ( [ 'compile' ] , self . consumes_managed_thirdparty ) #NEWLINE# walk = self . build_and_walk ( build_request ) #NEWLINE# self . assert_root ( walk , SelectNode ( self . consumes_managed_thirdparty , Classpath , None , None ) , Classpath ( creator = 'javac' ) ) #NEWLINE# managed_jars = [ self . managed_guava , self . managed_hadoop ] #NEWLINE# self . assert_select_for_subjects ( walk , Classpath , [ self . consumes_managed_thirdparty ] ) #NEWLINE# self . assert_select_for_subjects ( walk , Classpath , managed_jars , variants = { #NEWLINE# #INDENT# 'resolve' : 'latest-hadoop' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEquals ( { Jar ( 'org.apache.hadoop' , 'hadoop-common' , '2.7.0' ) , Jar ( 'com.google.guava' , 'guava' , '18.0' ) } , { ret . value for ( node , ret ) in walk if ( ( node . product == Jar ) and isinstance ( node , SelectNode ) ) } )