From: Alberto Berti Date: Sun, 22 Feb 2009 23:42:14 +0000 (-0700) Subject: Use failUnlessEqual instead of failUnless(a == b) X-Git-Tag: allmydata-tahoe-1.4.0~146 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/frontends/COPYING.GPL?a=commitdiff_plain;h=b2f8fe04c679c9164c56e47099df2dcd510d57b9;p=tahoe-lafs%2Ftahoe-lafs.git Use failUnlessEqual instead of failUnless(a == b) --- diff --git a/src/allmydata/scripts/cli.py b/src/allmydata/scripts/cli.py index 8bcb8ff6..196a3fc0 100644 --- a/src/allmydata/scripts/cli.py +++ b/src/allmydata/scripts/cli.py @@ -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, } - diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py index ac23c538..21f3818c 100644 --- a/src/allmydata/test/test_cli.py +++ b/src/allmydata/test/test_cli.py @@ -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()