def _do_single(self, filename):
    self.assertTrue(os.path.exists(filename))
    self.assertTrue(os.path.isfile(filename))
    self.assertTrue(os.access(filename, os.R_OK))
    self.assertTrue(os.path.exists(os.path.abspath(filename)))
    self.assertTrue(os.path.isfile(os.path.abspath(filename)))
    self.assertTrue(os.access(os.path.abspath(filename), os.R_OK))
    os.chmod(filename, 511)
    os.utime(filename, None)
    os.utime(filename, (time.time(), time.time()))
    self._do_copyish(filename, filename)
    self.assertTrue((os.path.abspath(filename) == os.path.abspath(glob.glob(filename)[0])))
    (path, base) = os.path.split(os.path.abspath(filename))
    file_list = os.listdir(path)
    base = unicodedata.normalize('NFD', base)
    file_list = [unicodedata.normalize('NFD', f) for f in file_list]
    self.assertIn(base, file_list)
def _do_single(self, filename):
    self.assertTrue(os.path.exists(filename))
    self.assertTrue(os.path.isfile(filename))
    self.assertTrue(os.access(filename, os.R_OK))
    self.assertTrue(os.path.exists(os.path.abspath(filename)))
    self.assertTrue(os.path.isfile(os.path.abspath(filename)))
    self.assertTrue(os.access(os.path.abspath(filename), os.R_OK))
    os.chmod(filename, 511)
    os.utime(filename, None)
    os.utime(filename, (time.time(), time.time()))
    self._do_copyish(filename, filename)
    self.assertTrue((os.path.abspath(filename) == os.path.abspath(glob.glob(filename)[0])))
    (path, base) = os.path.split(os.path.abspath(filename))
    file_list = os.listdir(path)
    base = unicodedata.normalize('NFD', base)
    file_list = [unicodedata.normalize('NFD', f) for f in file_list]
    self.assertIn(base, file_list)