def test_list_of_committed_files(self):

        # Test empty tree
        self.assertEquals(commit_hook._get_list_of_committed_files(), [])

        # Create file 'a'
        a = self.write_file('a', 'foo')
        self.assertEquals(commit_hook._get_list_of_committed_files(), [])

        # Add 'a'
        self.cmd('git add ' + a)
        self.assertEquals(commit_hook._get_list_of_committed_files(), [a])

        # Commit 'a'
        self.cmd('git commit -m msg')
        self.assertEquals(commit_hook._get_list_of_committed_files(), [])

        # Edit 'a'
        self.write_file('a', 'bar')
        self.assertEquals(commit_hook._get_list_of_committed_files(), [])

        # Add 'a'
        self.cmd('git add ' + a)
        self.assertEquals(commit_hook._get_list_of_committed_files(), [a])
Get an arbitrary, unique (for this test case) string of lore input.
dataset/ETHPy150Open sebdah/git-pylint-commit-hook/tests.py/TestHook.test_list_of_committed_files--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/test/test_release.py/BuilderTestsMixin.getArbitraryLoreInput