diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 8df3ca6a7..6b84fa6ba 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -1356,12 +1356,21 @@ class MockTest(MagicFolderTestMixin, unittest.TestCase): def _got_stats(res): self.failUnlessIn("Operational Statistics", res) self.failUnlessIn("Magic Folder", res) + self.failUnlessIn("
  • Local Directories Monitored: 1 directories
  • ", res) + self.failUnlessIn("
  • Files Uploaded: 1 files
  • ", res) + self.failUnlessIn("
  • Files Queued for Upload: 0 files
  • ", res) + self.failUnlessIn("
  • Failed Uploads: 0 files
  • ", res) + self.failUnlessIn("
  • Files Downloaded: 0 files
  • ", res) + self.failUnlessIn("
  • Files Queued for Download: 0 files
  • ", res) + self.failUnlessIn("
  • Failed Downloads: 0 files
  • ", res) d.addCallback(_got_stats) d.addCallback(lambda res: self.GET("statistics?t=json")) def _got_stats_json(res): data = simplejson.loads(res) - print data["counters"] + self.failUnlessEqual(data["counters"]["magic_folder.uploader.dirs_monitored"], 1) + self.failUnlessEqual(data["counters"]["magic_folder.uploader.objects_succeeded"], 1) self.failUnlessEqual(data["counters"]["magic_folder.uploader.files_uploaded"], 1) + self.failUnlessEqual(data["counters"]["magic_folder.uploader.objects_queued"], 0) d.addCallback(_got_stats_json) d.addBoth(self.cleanup) return d