MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testCheck

Method testCheck

test/IECore/CancellerTest.py:46–57  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

44class CancellerTest( unittest.TestCase ) :
45
46 def testCheck( self ) :
47
48 IECore.Canceller.check( None )
49
50 c = IECore.Canceller()
51 self.assertFalse( c.cancelled() )
52 IECore.Canceller.check( c )
53 c.cancel()
54 self.assertTrue( c.cancelled() )
55
56 with self.assertRaises( IECore.Cancelled ) :
57 IECore.Canceller.check( c )
58
59 def testFinally( self ) :
60

Callers

nothing calls this directly

Calls 4

cancelledMethod · 0.95
cancelMethod · 0.95
CancellerMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected