def METHOD_NAME(self):
    """
    ``SyncTestCase.mktemp`` returns a path the parent of which is writeable
    only by the owner.
    """
    tmp = self.case.mktemp()
    stat = os.stat(os.path.split(tmp)[0])
    self.assertEqual(
        stat.st_mode & (S_IWUSR | S_IWGRP | S_IWOTH),
        S_IWUSR,
        "Expected parent permissions to allow only owner writes, "
        "got {} instead.".format(
            Permissions(stat.st_mode),
        ),
    )