def METHOD_NAME(self):
    self.assertEqual(joinpaths("foo", "bar", "baz"), "foo/bar/baz")
    with tempfile.TemporaryDirectory() as tdname:
        with open(os.path.join(tdname, "real-file"), "w") as f:
            f.write("lorax test file")
        os.symlink(os.path.join(tdname, "real-file"), os.path.join(tdname, "link-file"))
        self.assertEqual(joinpaths(tdname, "link-file", follow_symlinks=True),
                         os.path.join(tdname, "real-file"))