def test_vcs_url_final_slash_normalization(script, tmpdir):
 pkg_path = _create_test_package(script, name='testpackage', vcs='hg')
 args = ['install', '-e', ('hg+%s/#egg=testpackage' % path_to_url(pkg_path))]
 result = script.pip(*args, **{'expect_error': True})
 result.assert_installed('testpackage', with_files=['.hg'])

def test_vcs_url_final_slash_normalization ( script , tmpdir ) : pkg_path = _create_test_package ( script , name = 'testpackage' , vcs = 'hg' ) args = [ 'install' , '-e' , ( 'hg+%s/#egg=testpackage' % path_to_url ( pkg_path ) ) ] result = script . pip ( * args , ** { 'expect_error' : True } ) result . assert_installed ( 'testpackage' , with_files = [ '.hg' ] )
test that presence or absence of final slash in vcs url is normalized .