Esempio n. 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"])
Esempio n. 2
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'])
Esempio n. 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'])