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