def test_fs_notification(self): watcher = FSWatcher(self.station.store.object_root) _id = self.station.write("foobarbaz") ret = watcher.read() self.assertEqual(_id, path2id(ret)) _id = self.station.write("foobarbaz1") ret = watcher.read() self.assertEqual(_id, path2id(ret)) _id = self.station.write("foobarbaz2") self.station.write("foobarbaz2") ret = watcher.read() self.assertEqual(_id, path2id(ret)) watcher.kill()