Exemplo n.º 1
0
 def test_set_unreadby(self):
     for x in range(1,5):
         fireViewEvent(self.obj,'user%s' % x)
     # check users
     assert 'user1' in get_readby(self.obj)
     assert 'user2' in get_readby(self.obj)
     # remove some users
     set_unreadby(self.obj, ['user1','user2'])
     assert 'user1' not in get_readby(self.obj)
     assert 'user2' not in get_readby(self.obj)
     # other users are still there
     assert 'user3' in get_readby(self.obj)
     assert 'user4' in get_readby(self.obj)
Exemplo n.º 2
0
 def set_unreadby(self, userids):
     set_unreadby(self.context, userids=userids)