#NEWLINE# def test_dependencies( self ) : #NEWLINE# #INDENT# @ inject ( injected ( 12 ) , None , ( 'foo' , 14 ) , foobar = 4 ) #NEWLINE# def function( first , second , third , foo = injected ( 'test' ) , foobar = None ) : #NEWLINE# #INDENT# return ( first , second , third , foo , foobar ) #NEWLINE# #UNINDENT# provider = FactoryProvider ( function ) #NEWLINE# self . assertDictEqual ( provider . dependencies , { #NEWLINE# #INDENT# 0 : 12 , #NEWLINE# 2 : ( 'foo' , 14 ) , #NEWLINE# 'foo' : 'test' , #NEWLINE# 'foobar' : 4 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTupleEqual ( provider ( 1 , 2 , 3 , 4 , 5 ) , ( 1 , 2 , 3 , 4 , 5 ) )