
import pytest

from cookiecutter import exceptions, vcs


def test_identify_git_github():
    repo_url = "https://github.com/audreyr/cookiecutter-pypackage.git"
    assert vcs.identify_repo(repo_url) == "git"


def test_identify_git_github_no_extension():
    repo_url = "https://github.com/audreyr/cookiecutter-pypackage"
    assert vcs.identify_repo(repo_url) == "git"


def test_identify_git_gitorious():
    repo_url = (
        "git@gitorious.org:cookiecutter-gitorious/cookiecutter-gitorious.git"
    )
    assert vcs.identify_repo(repo_url) == "git"


def test_identify_hg_mercurial():
    repo_url = "https://audreyr@bitbucket.org/audreyr/cookiecutter-bitbucket"
    assert vcs.identify_repo(repo_url) == "hg"


def test_unknown_repo_type():
    repo_url = "http://norepotypespecified.com"
    with pytest.raises(exceptions.UnknownRepoType):
        vcs.identify_repo(repo_url)


import pytest

from cookiecutter import exceptions, vcs


def test_identify_git_github():
    repo_url = 'https://github.com/audreyr/cookiecutter-pypackage.git'
    assert vcs.identify_repo(repo_url) == 'git'


def test_identify_git_github_no_extension():
    repo_url = 'https://github.com/audreyr/cookiecutter-pypackage'
    assert vcs.identify_repo(repo_url) == 'git'


def test_identify_git_gitorious():
    repo_url = (
        'git@gitorious.org:cookiecutter-gitorious/cookiecutter-gitorious.git'
    )
    assert vcs.identify_repo(repo_url) == 'git'


def test_identify_hg_mercurial():
    repo_url = 'https://audreyr@bitbucket.org/audreyr/cookiecutter-bitbucket'
    assert vcs.identify_repo(repo_url) == 'hg'


def test_unknown_repo_type():
    repo_url = 'http://norepotypespecified.com'
    with pytest.raises(exceptions.UnknownRepoType):
        vcs.identify_repo(repo_url)

Use single quotes instead of double quotes
Use single quotes instead of double quotes

  
  import pytest
  
  from cookiecutter import exceptions, vcs
  
  
  def test_identify_git_github():
-     repo_url = "https://github.com/audreyr/cookiecutter-pypackage.git"
+     repo_url = 'https://github.com/audreyr/cookiecutter-pypackage.git'
-     assert vcs.identify_repo(repo_url) == "git"
+     assert vcs.identify_repo(repo_url) == 'git'
  
  
  def test_identify_git_github_no_extension():
-     repo_url = "https://github.com/audreyr/cookiecutter-pypackage"
+     repo_url = 'https://github.com/audreyr/cookiecutter-pypackage'
-     assert vcs.identify_repo(repo_url) == "git"
+     assert vcs.identify_repo(repo_url) == 'git'
  
  
  def test_identify_git_gitorious():
      repo_url = (
-         "git@gitorious.org:cookiecutter-gitorious/cookiecutter-gitorious.git"
+         'git@gitorious.org:cookiecutter-gitorious/cookiecutter-gitorious.git'
      )
-     assert vcs.identify_repo(repo_url) == "git"
+     assert vcs.identify_repo(repo_url) == 'git'
  
  
  def test_identify_hg_mercurial():
-     repo_url = "https://audreyr@bitbucket.org/audreyr/cookiecutter-bitbucket"
+     repo_url = 'https://audreyr@bitbucket.org/audreyr/cookiecutter-bitbucket'
-     assert vcs.identify_repo(repo_url) == "hg"
+     assert vcs.identify_repo(repo_url) == 'hg'
  
  
  def test_unknown_repo_type():
-     repo_url = "http://norepotypespecified.com"
+     repo_url = 'http://norepotypespecified.com'
      with pytest.raises(exceptions.UnknownRepoType):
          vcs.identify_repo(repo_url)
  
Use single quotes instead of double quotes
## Code Before:

import pytest

from cookiecutter import exceptions, vcs


def test_identify_git_github():
    repo_url = "https://github.com/audreyr/cookiecutter-pypackage.git"
    assert vcs.identify_repo(repo_url) == "git"


def test_identify_git_github_no_extension():
    repo_url = "https://github.com/audreyr/cookiecutter-pypackage"
    assert vcs.identify_repo(repo_url) == "git"


def test_identify_git_gitorious():
    repo_url = (
        "git@gitorious.org:cookiecutter-gitorious/cookiecutter-gitorious.git"
    )
    assert vcs.identify_repo(repo_url) == "git"


def test_identify_hg_mercurial():
    repo_url = "https://audreyr@bitbucket.org/audreyr/cookiecutter-bitbucket"
    assert vcs.identify_repo(repo_url) == "hg"


def test_unknown_repo_type():
    repo_url = "http://norepotypespecified.com"
    with pytest.raises(exceptions.UnknownRepoType):
        vcs.identify_repo(repo_url)

## Instruction:
Use single quotes instead of double quotes
## Code After:

import pytest

from cookiecutter import exceptions, vcs


def test_identify_git_github():
    repo_url = 'https://github.com/audreyr/cookiecutter-pypackage.git'
    assert vcs.identify_repo(repo_url) == 'git'


def test_identify_git_github_no_extension():
    repo_url = 'https://github.com/audreyr/cookiecutter-pypackage'
    assert vcs.identify_repo(repo_url) == 'git'


def test_identify_git_gitorious():
    repo_url = (
        'git@gitorious.org:cookiecutter-gitorious/cookiecutter-gitorious.git'
    )
    assert vcs.identify_repo(repo_url) == 'git'


def test_identify_hg_mercurial():
    repo_url = 'https://audreyr@bitbucket.org/audreyr/cookiecutter-bitbucket'
    assert vcs.identify_repo(repo_url) == 'hg'


def test_unknown_repo_type():
    repo_url = 'http://norepotypespecified.com'
    with pytest.raises(exceptions.UnknownRepoType):
        vcs.identify_repo(repo_url)
