]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Cosmetics.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 28 Apr 2015 16:02:43 +0000 (17:02 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 28 Apr 2015 18:50:15 +0000 (19:50 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_drop_upload.py

index 249b216c15aae72ad3de33fd3df2dc673f7dc1f4..bfee3b8449e14340ce15a6d6e5066effa2a989b4 100644 (file)
@@ -72,8 +72,8 @@ class DropUploadTestMixin(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, NonA
         self._createdb(dbfile)
 
     def test_db_persistence(self):
-        """Test that a file upload creates an entry in the database.
-        """
+        """Test that a file upload creates an entry in the database."""
+
         fileutil.make_dirs(self.basedir)
         dbfile = abspath_expanduser_unicode(u"dbfile", base=self.basedir)
         db = self._createdb(dbfile)
@@ -88,8 +88,8 @@ class DropUploadTestMixin(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, NonA
                   (path,))
         row = db.cursor.fetchone()
         self.failIfEqual(row, None)
-        ##
-        # 2nd test uses db.check_file instead of SQL query directly
+
+        # Second test uses db.check_file instead of SQL query directly
         # to confirm the previous upload entry in the db.
         path = abspath_expanduser_unicode(u"myFile2", base=self.basedir)
         fileutil.write(path, "meow\n")
@@ -184,7 +184,8 @@ class DropUploadTestMixin(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, NonA
         return d
 
     def test_persistence(self):
-        """ Perform an upload of a given file and then stop the client.
+        """
+        Perform an upload of a given file and then stop the client.
         Start a new client and uploader... and verify that the file is NOT uploaded
         a second time. This test is meant to test the database persistence along with
         the startup and shutdown code paths of the uploader.