(self, job_class, args)
| 1759 | self.log = self.start(patch('mrjob.bin.log')) |
| 1760 | |
| 1761 | def _get_python_wrapper_content(self, job_class, args): |
| 1762 | job = job_class(['-r', 'hadoop'] + list(args)) |
| 1763 | job.sandbox() |
| 1764 | |
| 1765 | with job.make_runner() as runner: |
| 1766 | runner._create_setup_wrapper_scripts() |
| 1767 | |
| 1768 | if runner._spark_python_wrapper_path: |
| 1769 | with open(runner._spark_python_wrapper_path) as f: |
| 1770 | return f.read() |
| 1771 | else: |
| 1772 | return None |
| 1773 | |
| 1774 | def test_default(self): |
| 1775 | self.assertIsNone(self._get_python_wrapper_content( |
no test coverage detected