Ejemplo n.º 1
0
 def test_lib_install_command_with_no_install_spec(self, *args):
     lib_spec = get_lib_dusty_schema({
         'repo': 'some repo',
         'mount': '/mount/point'
     }, name='lib')
     expected_command = []
     actual_command = command_file._lib_install_commands(lib_spec)
     self.assertEqual(expected_command, actual_command)
Ejemplo n.º 2
0
 def test_lib_install_command_with_no_install_spec(self, *args):
     lib_spec = get_lib_dusty_schema({
         'repo': 'some repo',
         'mount': '/mount/point'
     })
     expected_command = []
     actual_command = command_file._lib_install_commands(lib_spec)
     self.assertEqual(expected_command, actual_command)
Ejemplo n.º 3
0
 def test_lib_install_commands(self, *args):
     lib_spec = {
         'repo': 'some repo',
         'mount': '/mount/point',
         'install': ['python install.py some args']
     }
     expected_command = ["cd /mount/point", "python install.py some args"]
     actual_command = command_file._lib_install_commands(lib_spec)
     self.assertEqual(expected_command, actual_command)
Ejemplo n.º 4
0
 def test_lib_install_commands(self, *args):
     lib_spec = {
         'repo': 'some repo',
         'mount': '/mount/point',
         'install': ['python install.py some args']
     }
     expected_command = ["cd /mount/point",  "python install.py some args"]
     actual_command = command_file._lib_install_commands(lib_spec)
     self.assertEqual(expected_command, actual_command)