示例#1
0
 def test_2(self):
     with capture_stdout() as output:
         self.assertFalse(
             execute(
                 [
                     ("StandardOutput", "org.vistrails.vistrails.basic", [("value", [("String", "two")])]),
                     ("StandardOutput", "org.vistrails.vistrails.basic", [("value", [("String", "one")])]),
                     ("ExecuteInOrder", "org.vistrails.vistrails.control_flow", []),
                 ],
                 [(1, "self", 2, "module1"), (0, "self", 2, "module2")],
             )
         )
     self.assertEqual(output, ["one", "two"])
示例#2
0
文件: order.py 项目: Nikea/VisTrails
 def test_2(self):
     with capture_stdout() as output:
         self.assertFalse(execute([
                 ('StandardOutput', 'org.vistrails.vistrails.basic', [
                     ('value', [('String', 'two')]),
                 ]),
                 ('StandardOutput', 'org.vistrails.vistrails.basic', [
                     ('value', [('String', 'one')]),
                 ]),
                 ('ExecuteInOrder', 'org.vistrails.vistrails.control_flow', []),
             ],
             [
                 (1, 'self', 2, 'module1'),
                 (0, 'self', 2, 'module2'),
             ]))
     self.assertEqual(output, ['one', 'two'])
示例#3
0
 def test_2(self):
     with capture_stdout() as output:
         self.assertFalse(
             execute([
                 ('StandardOutput', 'org.vistrails.vistrails.basic', [
                     ('value', [('String', 'two')]),
                 ]),
                 ('StandardOutput', 'org.vistrails.vistrails.basic', [
                     ('value', [('String', 'one')]),
                 ]),
                 ('ExecuteInOrder', 'org.vistrails.vistrails.control_flow',
                  []),
             ], [
                 (1, 'self', 2, 'module1'),
                 (0, 'self', 2, 'module2'),
             ]))
     self.assertEqual(output, ['one', 'two'])