test_main.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:grical 作者: wikical 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号