d.addCallback(lambda ign: self.create_invite_join_magic_folder(u"Alice", self.local_dir))
d.addCallback(lambda ign: self.create_magicfolder())
- def create_test_file(result, filename):
+ def create_test_file(filename):
d2 = self.magicfolder.uploader.set_hook('processed')
test_file = abspath_expanduser_unicode(filename, base=self.local_dir)
fileutil.write(test_file, "meow %s" % filename)
self.notify(to_filepath(test_file), self.inotify.IN_CLOSE_WRITE)
return d2
- d.addCallback(lambda ign: create_test_file(ign, u"what1"))
+ d.addCallback(lambda ign: create_test_file(u"what1"))
def fu(res):
print "upload complete"
return res
d.addCallback(self._restart_client)
d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.objects_succeeded'), 1))
d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.objects_queued'), 0))
- d.addCallback(lambda ign: create_test_file(ign, u"what2"))
+ d.addCallback(lambda ign: create_test_file(u"what2"))
def fu2(res):
print "2nd upload complete"