def test_python_archive(self):
        job = MROSWalkJob([
            '-r', 'local',
            '--setup', self.foo_tar_gz % 'export PYTHONPATH=%s#/:$PYTHONPATH'
        ])
        job.sandbox()

        with job.make_runner() as r:
            r.run()

            path_to_size = dict(job.parse_output_line(line)
                                for line in r.stream_output())

        # foo.py should be there, and getsize() should be patched to return
        # double the number of bytes
        self.assertEqual(path_to_size.get('./foo.tar.gz/foo.py'),
                         self.foo_py_size * 2)
dataset/ETHPy150Open Yelp/mrjob/tests/test_runner.py/SetupTestCase.test_python_archive/swapped operands of `%`