Esempio n. 1
0
 def test_cmd_array_custom_param(self):
     """ A more complex cmd array test for PigOptions. """
     po = PigOptions(params={'cake': 'IMPORT "/path/to/import";'})
     self.assertEqual(
         ['-param', 'cake="IMPORT \'"\'"\'/path/to/import\'"\'"\';"'],
         po.to_cmd_array()
     )
Esempio n. 2
0
 def test_cmd_array_local(self):
     """ A very simple cmd array test for PigOptions. """
     po = PigOptions(exectype='local')
     self.assertEqual(['-exectype', 'local'], po.to_cmd_array())