[test/notification] merge related test classe
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 29 Apr 2013 12:29:59 +0200
changeset 8955 8ef2d90512b5
parent 8954 9d30719142bf
child 8956 c81e1c463dbf
[test/notification] merge related test classe They have no reason to be distinct.
sobjects/test/unittest_notification.py
--- a/sobjects/test/unittest_notification.py	Mon Apr 29 11:43:36 2013 +0200
+++ b/sobjects/test/unittest_notification.py	Mon Apr 29 12:29:59 2013 +0200
@@ -60,9 +60,9 @@
             msgid1 = construct_message_id('testapp', eid, 12)
             self.assertNotEqual(msgid1, '<@testapp.%s>' % gethostname())
 
+class NotificationTC(CubicWebTC):
 
-class RecipientsFinderTC(CubicWebTC):
-    def test(self):
+    def test_recipients_finder(self):
         urset = self.execute('CWUser X WHERE X login "admin"')
         self.execute('INSERT EmailAddress X: X address "admin@logilab.fr", U primary_email X '
                      'WHERE U eid %(x)s', {'x': urset[0][0]})
@@ -79,9 +79,6 @@
         self.set_option('default-dest-addrs', 'abcd@logilab.fr, efgh@logilab.fr')
         self.assertEqual(finder.recipients(), [('abcd@logilab.fr', 'en'), ('efgh@logilab.fr', 'en')])
 
-
-class StatusChangeViewsTC(CubicWebTC):
-
     def test_status_change_view(self):
         req = self.request()
         u = self.create_user(req, 'toto')