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