#NEWLINE# def test_switching_to_git_feed( qitoolchain_action , git_server , feed , record_messages ) : #NEWLINE# #INDENT# boost_package = qitoolchain . qipackage . QiPackage ( 'boost' , version = '1.44' ) #NEWLINE# feed . add_package ( boost_package ) #NEWLINE# qitoolchain_action ( 'create' , 'foo' , boost_package . feed_xml . strpath ) #NEWLINE# toolchain_repo = git_server . create_repo ( 'toolchains.git' ) #NEWLINE# boost_package . version = '1.45' #NEWLINE# feed . add_package ( boost_package ) #NEWLINE# git_server . push_file ( 'toolchains.git' , 'feeds/foo.xml' , feed . feed_xml . read ( ) ) #NEWLINE# qitoolchain_action ( 'update' , '--feed-name' , 'foo' , 'foo' , toolchain_repo . clone_url ) #NEWLINE# assert record_messages . find ( 'from 1.44 to 1.45' ) #NEWLINE# qitoolchain_action ( 'info' , 'foo' ) #NEWLINE# assert record_messages . find ( 'on master' )