Beispiel #1
0
    def test_moderate_comment_sets_moderated_flag(self):
        rc = RComment()
        rc.moderate(False)

        tools.assert_true(rc.moderated)
Beispiel #2
0
    def test_moderated_command_is_not_public(self):
        rc = RComment(submit_date=datetime.now() - timedelta(10), moderated=True)

        tools.assert_false(rc.is_public())
Beispiel #3
0
    def test_comment_in_future_arent_public(self):
        rc = RComment(submit_date=datetime.now() + timedelta(10))

        tools.assert_false(rc.is_public())
Beispiel #4
0
    def test_moderate_comment_sets_moderated_flag(self):
        rc = RComment()
        rc.moderate(False)

        tools.assert_true(rc.moderated)
Beispiel #5
0
    def test_moderated_command_is_not_public(self):
        rc = RComment(submit_date=datetime.now() - timedelta(10),
                      moderated=True)

        tools.assert_false(rc.is_public())
Beispiel #6
0
    def test_comment_in_future_arent_public(self):
        rc = RComment(submit_date=datetime.now() + timedelta(10))

        tools.assert_false(rc.is_public())