def test_clone_of_event( self ):
""" checks that all classes with references to Event implement a clone
method with ``self`` and ``event`` as only parameters.
"""
pass # FIXME
# TODO check also a clone of another clone
# TODO {{{2
#This test can't work with sqlite, because sqlite not support multiusers.
#It is recomended to use this in future
# def test_visibility_in_thread(self):
# "testing visibility public and private events in thread"
# class TestThread(threading.Thread):
# "thread with random delay"
# def __init__(self, test, user_nr):
# self.user_nr = user_nr
# self.test = test
# threading.Thread.__init__(self)
# def run(self):
# time.sleep(random.randint(0, 100)/100.0)
# self.test.user_test_visibility(self.user_nr)
# for user_nr in range(USERS_COUNT):
# thread = TestThread(self, user_nr)
# thread.start()
# for second in range(20, 0, -1):
# print "wait %d seconds \r" % second,
# time.sleep(1)
# TODO: test that a notification email is sent to all members of a group
# when a new event is added to the group. See class Membership in
# events/models.py
评论列表
文章目录