Browse Source

Fixes tests (requires kombu master)

Ask Solem 11 years ago
parent
commit
fd728c4bde
1 changed files with 2 additions and 1 deletions
  1. 2 1
      celery/tests/worker/test_hub.py

+ 2 - 1
celery/tests/worker/test_hub.py

@@ -204,7 +204,8 @@ class test_Hub(Case):
         hub.poller = Mock(name='hub.poller')
         hub.poller.register.side_effect = ValueError()
         hub._discard = Mock(name='hub.discard')
-        hub.add(2, Mock(), READ)
+        with self.assertRaises(ValueError):
+            hub.add(2, Mock(), READ)
         hub._discard.assert_called_with(2)
 
     def test_repr_active(self):