本文整理匯總了Python中Red9.core.Red9_CoreUtils.timeIsInRange方法的典型用法代碼示例。如果您正苦於以下問題:Python Red9_CoreUtils.timeIsInRange方法的具體用法?Python Red9_CoreUtils.timeIsInRange怎麽用?Python Red9_CoreUtils.timeIsInRange使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Red9.core.Red9_CoreUtils
的用法示例。
在下文中一共展示了Red9_CoreUtils.timeIsInRange方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_timeIsInRange
# 需要導入模塊: from Red9.core import Red9_CoreUtils [as 別名]
# 或者: from Red9.core.Red9_CoreUtils import timeIsInRange [as 別名]
def test_timeIsInRange(self):
assert r9Core.timeIsInRange((0,100),(9,80))
assert not r9Core.timeIsInRange((10,100),(9,80))
assert not r9Core.timeIsInRange((-100,10),(9,80))
assert r9Core.timeIsInRange((-100,10),(-100,0))
assert r9Core.timeIsInRange((-100,None),(9,80))
assert r9Core.timeIsInRange((0,None),(9,80))
assert not r9Core.timeIsInRange((0,None),(-5,80))
assert r9Core.timeIsInRange((None,100),(9,80))
assert not r9Core.timeIsInRange((None,100),(9,101))
assert r9Core.timeIsInRange((None,100),(-5,0))
示例2: test_timeIsInRange
# 需要導入模塊: from Red9.core import Red9_CoreUtils [as 別名]
# 或者: from Red9.core.Red9_CoreUtils import timeIsInRange [as 別名]
def test_timeIsInRange(self):
assert r9Core.timeIsInRange((0,100),(9,80))
assert not r9Core.timeIsInRange((10,100),(9,80))
assert not r9Core.timeIsInRange((-100,10),(9,80))
assert r9Core.timeIsInRange((-100,10),(-100,0))
assert r9Core.timeIsInRange((-100,None),(9,80))
assert r9Core.timeIsInRange((0,None),(9,80))
assert not r9Core.timeIsInRange((0,None),(-5,80))
assert r9Core.timeIsInRange((None,100),(9,80))
assert not r9Core.timeIsInRange((None,100),(9,101))
assert r9Core.timeIsInRange((None,100),(-5,0))
assert r9Core.timeIsInRange((40,100),(40,100), start_inRange=True, end_inRange=True)
assert r9Core.timeIsInRange((40,100),(50,99), start_inRange=True, end_inRange=True)
assert not r9Core.timeIsInRange((40,100),(40,101), start_inRange=True, end_inRange=True)
assert r9Core.timeIsInRange((40,100),(50,101), start_inRange=True, end_inRange=False)
assert r9Core.timeIsInRange((40,100),(20,50), start_inRange=False, end_inRange=True)
assert not r9Core.timeIsInRange((40,100),(20,101), start_inRange=False, end_inRange=True)
示例3: Test_LockNodes
# 需要導入模塊: from Red9.core import Red9_CoreUtils [as 別名]
# 或者: from Red9.core.Red9_CoreUtils import timeIsInRange [as 別名]
assert r9Core.timeIsInRange((0,100),(9,80))
assert not r9Core.timeIsInRange((10,100),(9,80))
assert not r9Core.timeIsInRange((-100,10),(9,80))
assert r9Core.timeIsInRange((-100,10),(-100,0))
assert r9Core.timeIsInRange((-100,None),(9,80))
assert r9Core.timeIsInRange((0,None),(9,80))
assert not r9Core.timeIsInRange((0,None),(-5,80))
assert r9Core.timeIsInRange((None,100),(9,80))
assert not r9Core.timeIsInRange((None,100),(9,101))
assert r9Core.timeIsInRange((None,100),(-5,0))
<<<<<<< HEAD
assert r9Core.timeIsInRange((40,100),(40,100), start_inRange=True, end_inRange=True)
assert r9Core.timeIsInRange((40,100),(50,99), start_inRange=True, end_inRange=True)
assert not r9Core.timeIsInRange((40,100),(40,101), start_inRange=True, end_inRange=True)
assert r9Core.timeIsInRange((40,100),(50,101), start_inRange=True, end_inRange=False)
assert r9Core.timeIsInRange((40,100),(20,50), start_inRange=False, end_inRange=True)
assert not r9Core.timeIsInRange((40,100),(20,101), start_inRange=False, end_inRange=True)
=======
>>>>>>> d7ab8a039c4da0838a07bf4a9ec3ad957667b21e
class Test_LockNodes(object):
def setup(self):
cmds.file(new=True,f=True)
self.cube=cmds.ls(cmds.polyCube()[0],l=True)[0]