def test_inPlace(self):
        # Ensure that in-place works
        self._setupRepo()
        try:
            git_results.run(shlex.split("-i wresults/in/place -m 'hmm'"))
        except __HOLE__, e:
            self.fail(str(e))

        self.assertEqual("Hello, world\n",
                open('wresults/in/place/1/stdout').read())
        self.assertEqual("", open('wresults/in/place/1/stderr').read())
        # Build should have happened locally
        self.assertIn('hello_world_2', os.listdir('.'))
        # But not counted as a result
        self.assertNotIn('hello_world_2', os.listdir('wresults/in/place/1'))
        # Result file should have been moved instead of copied
        self.assertIn('hello_world_run', os.listdir('wresults/in/place/1'))
        self.assertNotIn('hello_world_run', os.listdir('.'))
dataset/ETHPy150Open wwoods/git-results/test/test_integration.py/TestGitResults.test_inPlace