diff --git a/web_notify/tests/test_res_users.py b/web_notify/tests/test_res_users.py index f6751fed..d32bc71b 100644 --- a/web_notify/tests/test_res_users.py +++ b/web_notify/tests/test_res_users.py @@ -44,8 +44,8 @@ class TestResUsers(common.TransactionCase): # a single call to the bus with mock.patch('openerp.addons.bus.models.bus.ImBus.sendmany' ) as mockedSendMany: - users = self.env.user.search([(1, "=", 1)]) + users = self.env.user.search([]) self.assertTrue(len(users) > 1) users.notify_warning('message') self.assertEqual(1, mockedSendMany.call_count) - self.assertEqual(len(users), len(mockedSendMany.call_args)) + self.assertEqual(len(users), len(mockedSendMany.call_args[0][0]))