Ejemplo n.º 1
0
 def test_TopologyImportNamespacePackage(self):
     from test_namespace_package.test_subpackage import test_module as test_ns_module
     try:
         topo = Topology("test_TopologyImportNamespacePackage")
         hw = topo.source(test_ns_module.SourceTuples(["Hello", "World!"]))
         hwf = hw.filter(test_functions.filter)
         hwf.sink(test_ns_module.CheckTuples(["World!"]))
         standalone(self, topo)
     finally:
         del test_ns_module
Ejemplo n.º 2
0
 def test_TopologyImportNamespacePackage(self):
     from test_namespace_package.test_subpackage import test_module as test_ns_module
     try:
         topo = Topology("test_TopologyImportNamespacePackage")
         hw = topo.source(test_ns_module.SourceTuples(["Hello", "World!"]))
         hwf = hw.filter(test_functions.filter)
         hwf.sink(test_ns_module.CheckTuples(["World!"]))
         streamsx.topology.context.submit("STANDALONE", topo.graph)
     finally:
         del test_ns_module