def nicer_name(self, fname):
        head, tail = os.path.split(fname)
        base, ext = os.path.splitext(tail)

        # Non templates keep their original name.
        if not self.is_template:
            return tail

        name = base.title().replace("-", " ").replace("_", " ")
        return name
Testing the PUT repositories/<id>/ API with a local site
dataset/ETHPy150Open ialbert/pyblue/pyblue/engine.py/File.nicer_name--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_repository.py/ResourceItemTests.test_put_with_site