filecap = filenode.get_uri()
print "filename %s filecap %s" % (path, filecap)
s = os.stat(path)
- self._db.did_upload_file(filecap, path.decode('UTF-8'), s.st_mtime, s.st_ctime, s.st_size)
+ self._db.did_upload_file(filecap, path.decode('UTF-8'),
+ s.st_mtime, s.st_ctime, s.st_size)
#r = self._db.check_file(path.decode('UTF-8'))
#was_uploaded = r.was_uploaded()
self.inotify = fake_inotify
self.basedir = "drop_upload.MockTest.test_persistence"
return self._test_persistence()
-
+
+
class RealTest(DropUploadTestMixin, unittest.TestCase):
"""This is skipped unless both Twisted and the platform support inotify."""
-
def test_drop_upload(self):
# We should always have runtime.platform.supportsINotify, because we're using
# Twisted >= 10.1.