comparison rhodecode/tests/functional/test_admin_notifications.py @ 1723:64e91067b996 beta

- refactoring to overcome poor usage of global pylons config - db transaction fixes - fixed tests - garden
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 26 Nov 2011 02:16:21 +0200
parents 54687aa00724
children 8ecc6b8229a5
comparison
equal deleted inserted replaced
1722:e7eef7a1db6a 1723:64e91067b996
100 u2 = UserModel().create_or_update(username='u2', password='qweqwe', 100 u2 = UserModel().create_or_update(username='u2', password='qweqwe',
101 email='u2@rhodecode.org', 101 email='u2@rhodecode.org',
102 name='u2', lastname='u2') 102 name='u2', lastname='u2')
103 103
104 notification = NotificationModel().create(created_by=cur_user, 104 notification = NotificationModel().create(created_by=cur_user,
105 subject='test', 105 subject=u'test',
106 body=u'hi there', 106 body=u'hi there',
107 recipients=[cur_user, u1, u2]) 107 recipients=[cur_user, u1, u2])
108 108
109 response = self.app.get(url('notification', 109 response = self.app.get(url('notification',
110 notification_id=notification.notification_id)) 110 notification_id=notification.notification_id))