Ejemplo n.º 1
0
def test_maybe_add_simple_index_pyinstall():
    dist = Distribution()
    cmd = pyinstall(dist)
    assert cmd.maybe_add_simple_index('http://foo') == 'http://foo/simple'
Ejemplo n.º 2
0
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'