]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Better naming of test to create a file at a long path. refs #2235
authorDaira Hopwood <daira@jacaranda.org>
Thu, 29 Jan 2015 17:15:15 +0000 (17:15 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 29 Jan 2015 17:15:15 +0000 (17:15 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_util.py

index 43038db5ce9c62be2b1cf7eeae3442be1e198b11..d907c118a76341abb39bb7f1183368ed8d2f41b9 100644 (file)
@@ -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):