<s> import os <EOL> import qitoolchain . svn_package <EOL> import qitoolchain . toolchain <EOL> from qisrc . test . conftest import svn_server <EOL> def test_simple ( qitoolchain_action , svn_server , feed , record_messages ) : <EOL> toolchain = qitoolchain . toolchain . Toolchain ( "<STR_LIT:foo>" ) <EOL> boost_url = svn_server . create_repo ( "<STR_LIT>" ) <EOL> svn_server . commit_file ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> qt_url = svn_server . create_repo ( "<STR_LIT>" ) <EOL> boost_package = qitoolchain . svn_package . SvnPackage ( "<STR_LIT>" ) <EOL> boost_package . url = boost_url <EOL> qt_package = qitoolchain . svn_package . SvnPackage ( "<STR_LIT>" ) <EOL> qt_package . url = qt_url <EOL> feed . add_svn_package ( boost_package ) <EOL> feed . add_svn_package ( qt_package ) <EOL> toolchain . update ( feed . url ) <EOL> record_messages . reset ( ) <EOL> rc = qitoolchain_action ( "<STR_LIT>" , "<STR_LIT:foo>" , retcode = True ) <EOL> assert rc == <NUM_LIT:0> <EOL> assert not record_messages . find ( "<STR_LIT>" ) <EOL> assert not record_messages . find ( "<STR_LIT>" ) <EOL> assert record_messages . find ( "<STR_LIT>" ) <EOL> boost_path = toolchain . get_package ( "<STR_LIT>" ) . path <EOL> version_hpp = os . path . join ( boost_path , "<STR_LIT>" ) <EOL> os . remove ( version_hpp ) <EOL> record_messages . reset ( ) <EOL> rc = qitoolchain_action ( "<STR_LIT>" , "<STR_LIT:foo>" , retcode = True ) <EOL> assert rc != <NUM_LIT:0> <EOL> assert record_messages . find ( "<STR_LIT>" ) <EOL> assert record_messages . find ( "<STR_LIT>" ) </s>
