Пример #1
0
def when_initials_are_blank_then_comment_author_label_is_blank():
    assert_equal(
        "",
        _comment_author_label(
            documents.comment(
                comment_id="0",
                body=[],
                author_initials=None,
            )))
Пример #2
0
def when_initials_are_not_blank_then_comment_author_label_is_initials():
    assert_equal(
        "TP",
        _comment_author_label(
            documents.comment(
                comment_id="0",
                body=[],
                author_initials="TP",
            )))
def when_initials_are_blank_then_comment_author_label_is_blank():
    assert_equal("", _comment_author_label(documents.comment(
        comment_id="0",
        body=[],
        author_initials=None,
    )))
def when_initials_are_not_blank_then_comment_author_label_is_initials():
    assert_equal("TP", _comment_author_label(documents.comment(
        comment_id="0",
        body=[],
        author_initials="TP",
    )))