def METHOD_NAME(mocker):
    # 70 character string
    string_with_newline = "this is a string\n with a newline"
    sl = SecureQLabel(string_with_newline, wordwrap=False, max_length=38)
    elided_text = sl.get_elided_text(string_with_newline)
    assert sl.text() == elided_text
    assert "…" in elided_text