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)
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)
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)