Ejemplo n.º 1
0
 def test_unsupported_invocation_type(self):
     def testpipe(x,y):
         u,v=test_exec(a=x, b=y)
         return u,v
     
     class FakeInvocation(Invocation):
         def __init__(self, name):
             Invocation.__init__(self, name)
         
     builder=PydronGraphBuilder(testpipe)
     builder.build()
     ticks=sorted(builder.graph.get_all_ticks())
     last_tick=ticks[-1]
     try:
         builder.add_task(last_tick, FakeInvocation('fake'))
         self.fail("Unsupported Invocations should be caught.")
     except PipelineGraphError:
         pass