[test/py3k] fix test_recipients_finder
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 21 Dec 2015 15:46:36 +0100
changeset 11011 94bbf6d7eaf8
parent 11010 09be4709c8c0
child 11012 739943455c9d
[test/py3k] fix test_recipients_finder AssertionError: <zip object at 0x7f1dfb0230c8> != [('abcd@logilab.fr', 'en'), ('efgh@logilab.fr', 'en')]
sobjects/test/unittest_notification.py
--- a/sobjects/test/unittest_notification.py	Mon Dec 21 15:44:20 2015 +0100
+++ b/sobjects/test/unittest_notification.py	Mon Dec 21 15:46:36 2015 +0100
@@ -76,7 +76,7 @@
             self.assertEqual(finder.recipients(), [(u'admin@logilab.fr', 'fr')])
             self.set_option('default-recipients-mode', 'default-dest-addrs')
             self.set_option('default-dest-addrs', 'abcd@logilab.fr, efgh@logilab.fr')
-            self.assertEqual(finder.recipients(), [('abcd@logilab.fr', 'en'), ('efgh@logilab.fr', 'en')])
+            self.assertEqual(list(finder.recipients()), [('abcd@logilab.fr', 'en'), ('efgh@logilab.fr', 'en')])
 
     def test_status_change_view(self):
         with self.admin_access.web_request() as req: