'Change directory before running hook'

def test_run_script_cwd(self):

    hooks.run_script(os.path.join(self.hooks_path, self.post_hook), 'tests')
    assert os.path.isfile('tests/shell_post.txt')
    assert ('tests' not in os.getcwd())
