From: Daira Hopwood Date: Thu, 29 Jan 2015 17:15:15 +0000 (+0000) Subject: Better naming of test to create a file at a long path. refs #2235 X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=322ce963ae5864b0168bca1243905f82f373b014;p=tahoe-lafs%2Ftahoe-lafs.git Better naming of test to create a file at a long path. refs #2235 Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_util.py b/src/allmydata/test/test_util.py index 43038db5..d907c118 100644 --- a/src/allmydata/test/test_util.py +++ b/src/allmydata/test/test_util.py @@ -507,19 +507,19 @@ class FileUtil(ReallyEqualMixin, unittest.TestCase): finally: os.chdir(saved_cwd) - def test_create_long_filename(self): - workdir = u"test_create_long_filename" + def test_create_long_path(self): + workdir = u"test_create_long_path" fileutil.make_dirs(workdir) - long_filename = fileutil.abspath_expanduser_unicode(os.path.join(workdir, u'x'*255)) + long_path = fileutil.abspath_expanduser_unicode(os.path.join(workdir, u'x'*255)) def _cleanup(): - fileutil.remove(long_filename) + fileutil.remove(long_path) self.addCleanup(_cleanup) - fileutil.write(long_filename, "test") - self.failUnless(os.path.exists(long_filename)) - self.failUnlessEqual(fileutil.read(long_filename), "test") + fileutil.write(long_path, "test") + self.failUnless(os.path.exists(long_path)) + self.failUnlessEqual(fileutil.read(long_path), "test") _cleanup() - self.failIf(os.path.exists(long_filename)) + self.failIf(os.path.exists(long_path)) def test_windows_expanduser(self): def call_windows_getenv(name):