Example #1
0
 def test_parse_args_user(self):
     FILE_NAME = '/tmp/does.not.exist'
     USER = '******'
     args = oozie_converter.parse_args(['-i', FILE_NAME,
                                        '-u', USER])
     self.assertEquals(args.input, FILE_NAME)
     self.assertEquals(args.user, USER)
Example #2
0
 def test_parse_args_prop_file(self):
     FILE_NAME = '/tmp/does.not.exist'
     PROP_FILE_NAME = '/tmp/job.properties'
     args = oozie_converter.parse_args(['-i', FILE_NAME,
                                        '-p', PROP_FILE_NAME])
     self.assertEquals(args.input, FILE_NAME)
     self.assertEquals(args.properties, PROP_FILE_NAME)
Example #3
0
 def test_parse_args_output_file(self):
     FILE_NAME = '/tmp/does.not.exist'
     OUT_FILE_NAME = '/tmp/out.py'
     args = oozie_converter.parse_args(['-i', FILE_NAME,
                                        '-o', OUT_FILE_NAME])
     self.assertEquals(args.input, FILE_NAME)
     self.assertEquals(args.output, OUT_FILE_NAME)
Example #4
0
 def test_parse_args_input(self):
     FILE_NAME = '/tmp/does.not.exist'
     args = oozie_converter.parse_args(['-i', FILE_NAME])
     self.assertEquals(args.input, FILE_NAME)