本文整理汇总了Python中jarn.mkrelease.scm.Git.is_valid_url方法的典型用法代码示例。如果您正苦于以下问题:Python Git.is_valid_url方法的具体用法?Python Git.is_valid_url怎么用?Python Git.is_valid_url使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jarn.mkrelease.scm.Git
的用法示例。
在下文中一共展示了Git.is_valid_url方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testEmptyString
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import is_valid_url [as 别名]
def testEmptyString(self):
scm = Git()
self.assertEqual(scm.is_valid_url(""), False)
示例2: testGitSshUrl
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import is_valid_url [as 别名]
def testGitSshUrl(self):
scm = Git()
self.assertEqual(scm.is_valid_url("[email protected]:Jarn/jarn.mkrelease"), True)
示例3: testFileUrl
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import is_valid_url [as 别名]
def testFileUrl(self):
scm = Git()
self.assertEqual(scm.is_valid_url("file://"), True)
示例4: testBadProtocol
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import is_valid_url [as 别名]
def testBadProtocol(self):
scm = Git()
self.assertEqual(scm.is_valid_url("svn://"), False)
示例5: testHttpsUrl
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import is_valid_url [as 别名]
def testHttpsUrl(self):
scm = Git()
self.assertEqual(scm.is_valid_url("https://"), True)
示例6: testSshUrl
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import is_valid_url [as 别名]
def testSshUrl(self):
scm = Git()
self.assertEqual(scm.is_valid_url("ssh://"), True)
示例7: testRsyncUrl
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import is_valid_url [as 别名]
def testRsyncUrl(self):
scm = Git()
self.assertEqual(scm.is_valid_url("rsync://"), True)
示例8: testGitUrl
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import is_valid_url [as 别名]
def testGitUrl(self):
scm = Git()
self.assertEqual(scm.is_valid_url("git://"), True)
示例9: testHttpUrl
# 需要导入模块: from jarn.mkrelease.scm import Git [as 别名]
# 或者: from jarn.mkrelease.scm.Git import is_valid_url [as 别名]
def testHttpUrl(self):
scm = Git()
self.assertEqual(scm.is_valid_url('http://'), True)