Example #1
0
 def test_conversion(self):
     assert_equal(
         combine_cmd_lists(
             ['echo "Hello World!"'], None, [('mkdir', '/tmp/baz')]),
         [['echo', 'Hello World!'], ['mkdir', '/tmp/baz']])
Example #2
0
 def test_empty(self):
     assert_equal(combine_cmd_lists(), [])
Example #3
0
 def test_concatenation(self):
     assert_equal(
         combine_cmd_lists(
             [['echo', 'foo']], None, (['mkdir', 'bar'], ['rmdir', 'bar'])),
         [['echo', 'foo'], ['mkdir', 'bar'], ['rmdir', 'bar']])
Example #4
0
 def test_conversion(self):
     self.assertEqual(
         combine_cmd_lists(['echo "Hello World!"'], None, [("mkdir", "/tmp/baz")]),
         [["echo", "Hello World!"], ["mkdir", "/tmp/baz"]],
     )
Example #5
0
 def test_empty(self):
     self.assertEqual(combine_cmd_lists(), [])
Example #6
0
 def test_concatenation(self):
     self.assertEqual(
         combine_cmd_lists([["echo", "foo"]], None, (["mkdir", "bar"], ["rmdir", "bar"])),
         [["echo", "foo"], ["mkdir", "bar"], ["rmdir", "bar"]],
     )
Example #7
0
 def test_conversion(self):
     self.assertEqual(
         combine_cmd_lists(
             ['echo "Hello World!"'], None, [('mkdir', '/tmp/baz')]),
         [['echo', 'Hello World!'], ['mkdir', '/tmp/baz']])
Example #8
0
 def test_concatenation(self):
     self.assertEqual(
         combine_cmd_lists(
             [['echo', 'foo']], None, (['mkdir', 'bar'], ['rmdir', 'bar'])),
         [['echo', 'foo'], ['mkdir', 'bar'], ['rmdir', 'bar']])
Example #9
0
 def test_empty(self):
     self.assertEqual(combine_cmd_lists(), [])
Example #10
0
 def test_empty(self):
     assert_equal(combine_cmd_lists(), [])