From 0747d29880e55c7b45d69a8320072f5092a554e3 Mon Sep 17 00:00:00 2001
From: David Stainton <dstainton415@gmail.com>
Date: Tue, 26 May 2015 09:15:31 -0700
Subject: [PATCH] Test inotify with event agnostic notify

def notify(self, path, mask)
instead of
def notify_close_write(self, path)
---
 src/allmydata/test/test_drop_upload.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/allmydata/test/test_drop_upload.py b/src/allmydata/test/test_drop_upload.py
index 424c498d..605a3b91 100644
--- a/src/allmydata/test/test_drop_upload.py
+++ b/src/allmydata/test/test_drop_upload.py
@@ -360,8 +360,9 @@ class MockTest(DropUploadTestMixin, unittest.TestCase):
         DropUploadTestMixin.setUp(self)
         self.inotify = fake_inotify
 
-    def notify_close_write(self, path):
-        self.uploader._notifier.event(path, self.inotify.IN_CLOSE_WRITE)
+
+    def notify(self, path, mask):
+        self.uploader._notifier.event(path, mask)
 
     def test_errors(self):
         self.set_up_grid()
@@ -401,8 +402,8 @@ class RealTest(DropUploadTestMixin, unittest.TestCase):
         DropUploadTestMixin.setUp(self)
         self.inotify = None
 
-    def notify_close_write(self, path):
-        # Writing to the file causes the notification.
+    def notify(self, path, mask):
+        # Writing to the filesystem causes the notification.
         pass
 
 if sys.platform != "win32" and not runtime.platform.supportsINotify():
-- 
2.45.2