def _make_file(self, rela_path, data, repo=None):
        """
        Create a file at the given path relative to our repository, filled with the
        given data.

        :return: An absolute path to the created file.
        """
        repo = repo or self.rorepo
        abs_path = osp.join(repo.working_tree_dir, rela_path)
        with open(abs_path, "w") as fp:
            fp.write(data)
        return abs_path

        Create a file at the given path relative to our repository, filled with the
        given data.

        :return: An absolute path to the created file.
        
test/lib/helper.py