]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_client.py: relax a check in test_create_drop_uploader so that it should pass...
authordavid-sarah <david-sarah@jacaranda.org>
Wed, 10 Aug 2011 05:25:04 +0000 (22:25 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Wed, 10 Aug 2011 05:25:04 +0000 (22:25 -0700)
src/allmydata/test/test_client.py

index 59618fd5734e836370de2e71999ae0b1d77ba701..26af511804d5bf1ee1c1b54670edf66381af766c 100644 (file)
@@ -209,7 +209,7 @@ class Basic(testutil.ReallyEqualMixin, unittest.TestCase):
 
         class Boom(Exception):
             pass
-        mock_drop_uploader.side_effect = Boom("something wrong")
+        mock_drop_uploader.side_effect = Boom()
 
         basedir2 = "test_client.Basic.test_create_drop_uploader2"
         os.mkdir(basedir2)
@@ -219,7 +219,7 @@ class Basic(testutil.ReallyEqualMixin, unittest.TestCase):
                        "enabled = true\n")
         c2 = client.Client(basedir2)
         self.failUnlessRaises(KeyError, c2.getServiceNamed, 'drop-upload')
-        self.failIf([True for arg in mock_log_msg.call_args_list if "Boom" in repr(arg) or "something wrong" in repr(arg)],
+        self.failIf([True for arg in mock_log_msg.call_args_list if "Boom" in repr(arg)],
                     mock_log_msg.call_args_list)
         self.failUnless([True for arg in mock_log_msg.call_args_list if "upload.dircap or local.directory not specified" in repr(arg)],
                         mock_log_msg.call_args_list)
@@ -228,7 +228,7 @@ class Basic(testutil.ReallyEqualMixin, unittest.TestCase):
         os.mkdir(basedir3)
         fileutil.write(os.path.join(basedir3, "tahoe.cfg"), config)
         client.Client(basedir3)
-        self.failUnless([True for arg in mock_log_msg.call_args_list if "Boom" in repr(arg) and "something wrong" in repr(arg)],
+        self.failUnless([True for arg in mock_log_msg.call_args_list if "Boom" in repr(arg)],
                         mock_log_msg.call_args_list)