]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Use failUnlessEqual instead of failUnless(a == b)
authorAlberto Berti <alberto@metapensiero.it>
Sun, 22 Feb 2009 23:42:14 +0000 (16:42 -0700)
committerAlberto Berti <alberto@metapensiero.it>
Sun, 22 Feb 2009 23:42:14 +0000 (16:42 -0700)
src/allmydata/scripts/cli.py
src/allmydata/test/test_cli.py

index 8bcb8ff6e5c0042a0d2bfe40c647b62fec54c6ed..196a3fc07999a42ddc4fa3bbd453fcd92091f7c7 100644 (file)
@@ -1,4 +1,3 @@
-
 import os.path, re, sys, fnmatch
 from twisted.python import usage
 from allmydata.scripts.common import BaseOptions, get_aliases
@@ -466,4 +465,3 @@ dispatch = {
     "check": check,
     "deep-check": deepcheck,
     }
-
index ac23c5382b8fed44ee6f8d6cd858ee230907b79e..21f3818c73daf01987ce83d9149034945298410f 100644 (file)
@@ -948,8 +948,8 @@ class Backup(GridTestMixin, CLITestMixin, StallMixin, unittest.TestCase):
             all = set(all)
             included = set(included)
             excluded = set(excluded)
-            self.failUnless(filtered == included)
-            self.failUnless(all.difference(filtered) == excluded)
+            self.failUnlessEqual(filtered, included)
+            self.failUnlessEqual(all.difference(filtered), excluded)
 
         # test simple exclude
         backup_options = cli.BackupOptions()