def validate(cls, repo_url): return check_git_url(repo_url)
def test_check_git_url(self): assert check_git_url( "http://code.dapps.douban.com/lisong_intern/code.git") is None assert check_git_url("https://github.com/liluo/py-oauth2.git") is None