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=100)
    elided_text = sl.get_elided_text(string_with_newline)
    assert sl.text() == elided_text
    assert elided_text == "this is a string"