本文整理汇总了Python中jarn.mkrelease.scm.Mercurial.is_valid_sandbox方法的典型用法代码示例。如果您正苦于以下问题:Python Mercurial.is_valid_sandbox方法的具体用法?Python Mercurial.is_valid_sandbox怎么用?Python Mercurial.is_valid_sandbox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jarn.mkrelease.scm.Mercurial
的用法示例。
在下文中一共展示了Mercurial.is_valid_sandbox方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testNotACheckout
# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import is_valid_sandbox [as 别名]
def testNotACheckout(self):
scm = Mercurial()
self.destroy()
self.assertEqual(scm.is_valid_sandbox(self.packagedir), False)
示例2: testNotADir
# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import is_valid_sandbox [as 别名]
def testNotADir(self):
scm = Mercurial()
self.assertEqual(scm.is_valid_sandbox(join(self.packagedir, 'setup.py')), False)
示例3: testSubdirOfSandbox
# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import is_valid_sandbox [as 别名]
def testSubdirOfSandbox(self):
scm = Mercurial()
self.assertEqual(scm.is_valid_sandbox(join(self.packagedir, 'testpackage')), True)
示例4: testNotExists
# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import is_valid_sandbox [as 别名]
def testNotExists(self):
scm = Mercurial()
self.assertEqual(scm.is_valid_sandbox('foo'), False)
示例5: testSandbox
# 需要导入模块: from jarn.mkrelease.scm import Mercurial [as 别名]
# 或者: from jarn.mkrelease.scm.Mercurial import is_valid_sandbox [as 别名]
def testSandbox(self):
scm = Mercurial()
self.assertEqual(scm.is_valid_sandbox(self.packagedir), True)