use mock.patch in test_search
add `pip show --pypi` tests