def test_maybe_add_simple_index_pyinstall(): dist = Distribution() cmd = pyinstall(dist) assert cmd.maybe_add_simple_index('http://foo') == 'http://foo/simple'
def test_maybe_add_simple_index_pyinstall(): with patch.object(base, 'CONFIG', TEST_CONFIG): dist = Distribution() cmd = pyinstall.pyinstall(dist) assert cmd.maybe_add_simple_index('http://foo') == 'http://foo/simple'