Skip to content

Commit

Permalink
Add Test without ntlm requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmuriart committed Jan 26, 2016
1 parent e94b2ea commit 7f28547
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/functional/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,23 @@ def test_with_setuptools_and_import_error(script, data):
assert "ImportError: toto" in result.stderr


def test_without_ntlm(script, data):
result = script.run(
"python", "-c",
"import pip; pip.main(["
"'install', "
"'INITools==0.2', "
"'-f', '%s', "
"'--auth-ntlm'])" % data.packages,
expect_error=True,
)
assert (
"Dependencies for Ntlm authentication are missing. Install "
"dependencies via the 'pip install pip[ntlm]' command."
in result.stderr
)


def test_pip_second_command_line_interface_works(script, data):
"""
Check if ``pip<PYVERSION>`` commands behaves equally
Expand Down

0 comments on commit 7f28547

Please sign in to comment.