from cookiecutter.main import is_repo_url


def test_is_repo_url():
    """Verify is_repo_url works."""
    assert is_repo_url('gitolite@server:team/repo') is True
    assert is_repo_url('git@github.com:audreyr/cookiecutter.git') is True
    assert is_repo_url('https://github.com/audreyr/cookiecutter.git') is True
    assert is_repo_url('gh:audreyr/cookiecutter-pypackage') is True
    assert is_repo_url('https://bitbucket.org/pokoli/cookiecutter.hg') is True

    assert is_repo_url('/audreyr/cookiecutter.git') is False
    assert is_repo_url('/home/audreyr/cookiecutter') is False

    appveyor_temp_dir = (
        'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pytest-0\\'
        'test_default_output_dir0\\template'
    )
    assert is_repo_url(appveyor_temp_dir) is False

@@ -34,17 +34,39 @@
 repo_url
+, expand_abbreviations
 %0A
-
 %0A%0Adef te
@@ -335,76 +335,8 @@
 rue%0A
-    assert is_repo_url('gh:audreyr/cookiecutter-pypackage') is True%0A
     
@@ -679,16 +679,16 @@
 '%0A    )%0A
-
     asse
@@ -722,16 +722,362 @@
 p_dir) is False%0A
+%0A%0Adef test_expand_abbreviations():%0A    template = 'gh:audreyr/cookiecutter-pypackage'%0A%0A    # This is not a valid repo url just yet!%0A    # First %60main.expand_abbreviations%60 needs to translate it%0A    assert is_repo_url(template) is False%0A%0A    expanded_template = expand_abbreviations(template, %7B%7D)%0A    assert is_repo_url(expanded_template) is True%0A

Implement a test specifically for abbreviations