def test_noMessage(self):
        # Ensure it does not work without a message, and that only valid
        # messages are accepted.
        self._setupRepo()

        try:
            try:
                # Replace editor with bunk editor
                os.environ['EDITOR'] = 'ls > /dev/null'
                git_results.run(shlex.split("results/test/run"))
            except ValueError, e:
                self.assertEqual("Commit message must be at least 5 "
                        "characters; got: ''", str(e))

            try:
                os.environ['EDITOR'] = 'echo "Comm" >'
                git_results.run(shlex.split("results/test/run"))
            except ValueError, e:
                self.assertEqual("Commit message must be at least 5 "
                        "characters; got: 'Comm'", str(e))

            os.environ['EDITOR'] = 'echo "Commt" >'
            git_results.run(shlex.split("results/test/run"))
            self.assertEqual("Hello, world\n",
                    open("results/test/run/1/stdout").read())

            # If no commit is required, it should still prompt for a
            # message.
            os.environ['EDITOR'] = 'echo "Commz" >'
            git_results.run(shlex.split("results/test/run2"))
            self.assertEqual("Hello, world\n",
                    open("results/test/run2/1/stdout").read())
        except __HOLE__, e:
            self.fail(str(e))

        '''
        self.assertEqual("Hello, world\n",
                open('results/test/run/1/stdout').read())
        self.assertEqual("", open('results/test/run/1/stderr').read())
        self.assertNotIn('hello_world_2', os.listdir('.'))
        self.assertNotIn('hello_world_2', os.listdir('results/test/run/1'))
        '''
dataset/ETHPy150Open wwoods/git-results/test/test_integration.py/TestGitResults.test_noMessage