Added test for verbose option of list command
@@ -17,6 +17,22 @@ def test_list_command(script, data):
assert 'simple2 3.0' in result.stdout, str(result)
+def test_verbose_flag(script, data):
+ """
+ Test the list command with the '-v' option
+ """
+ script.pip(
+ 'install', '-f', data.find_links, '--no-index', 'simple==1.0',
+ 'simple2==3.0',
+ )
+ result = script.pip('list', '-v')
+ assert 'Package' in result.stdout, str(result)
+ assert 'Version' in result.stdout, str(result)
+ assert 'Location' in result.stdout, str(result)
+ assert 'simple 1.0' in result.stdout, str(result)
+ assert 'simple2 3.0' in result.stdout, str(result)
+
+
def test_columns_flag(script, data):
"""
Test the list command with the '--format=columns' option
