assert the order of the install/global options in the install call

This commit is contained in:
Marcus Smith 2015-04-07 19:37:36 -07:00 committed by Georgi Valkov
parent 1294c0d9a7
commit 9159a1db2a
1 changed files with 3 additions and 4 deletions

View File

@ -297,7 +297,6 @@ class TestParseRequirements(object):
pass
call = popen.call_args_list[0][0][0]
for i in global_option, install_option:
assert i in call
# TODO: assert that --global-option come before --install-option.
assert call.index(install_option) > \
call.index('install') > \
call.index(global_option) > 0