def test_run(self): """ Tests the run command. """ p = Pigthon(self.config()) output, error = p.run([ 'ls', normpath(self.test_dir() + '/empty') ]) self.assertEqual('', error) self.assertEqual('empty.txt', output.strip())
def test_pig_help(self): """ Test requesting the help menu from pig. """ po = PigOptions(help=True) p = Pigthon() output, error = p.pig(po) self.assertTrue('Display this message' in output)