@pytest.mark.network
def test_run_method_should_return_no_matches_found_when_does_not_find_pkgs():
 command = SearchCommand()
 cmdline = '--index=https://pypi.python.org/pypi nonexistentpackage'
 (options, args) = command.parse_args(cmdline.split())
 status = command.run(options, args)
 assert (status == NO_MATCHES_FOUND)

@ pytest . mark . network def test_run_method_should_return_no_matches_found_when_does_not_find_pkgs ( ) : command = SearchCommand ( ) cmdline = '--index=https://pypi.python.org/pypi nonexistentpackage' ( options , args ) = command . parse_args ( cmdline . split ( ) ) status = command . run ( options , args ) assert ( status == NO_MATCHES_FOUND )
test searchcommand .