def test_parse_longname_with_colon():
    f = io.BytesIO(textwrap.dedent('            FormatVersion=5.0 // Do not edit this line!\n            Title="a file"\n\n            {SEND}\n\n            [pass]\n            DLC=8\n            Var=Password unsigned 16,16 /ln:"Access Level : Password"\n            ').encode('utf-8'))
    matrix = canmatrix.formats.sym.load(f)
    frame = matrix.frames[0]
    signal = frame.signals[0]
    assert (signal.attributes['LongName'] == 'Access Level : Password')
def test_parse_longname_with_colon():
    f = io.BytesIO(textwrap.dedent('            FormatVersion=5.0 // Do not edit this line!\n            Title="a file"\n\n            {SEND}\n\n            [pass]\n            DLC=8\n            Var=Password unsigned 16,16 /ln:"Access Level : Password"\n            ').encode('utf-8'))
    matrix = canmatrix.formats.sym.load(f)
    frame = matrix.frames[0]
    signal = frame.signals[0]
    assert (signal.attributes['LongName'] == 'Access Level : Password')