#NEWLINE# def test_dependencies_versions_correctly_replaced( self ) : #NEWLINE# #INDENT# repositories = [ { #NEWLINE# #INDENT# 'url' : self . repo1 , #NEWLINE# 'branch' : 'master' , #NEWLINE# 'package_name' : self . package1_name , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'url' : self . repo2 , #NEWLINE# 'branch' : 'master' , #NEWLINE# 'package_name' : self . package2_name , #NEWLINE# #UNINDENT# } ] #NEWLINE# update_dependency_versions ( repositories , self . test_control , workdir = self . metarepo ) #NEWLINE# expected_control_output = ( master_control_content_pattern % { #NEWLINE# #INDENT# 'package1_name' : self . package1_name , #NEWLINE# 'package2_name' : self . package2_name , #NEWLINE# 'package1_version' : '0.1.1' , #NEWLINE# 'package2_version' : '0.2.1' , #NEWLINE# 'metapackage_version' : '0.13.4' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert_equals ( expected_control_output . strip ( ) , open ( self . test_control ) . read ( ) . strip ( ) )