Пример #1
0
def test_remove_lines():
    in1 = ['This is a test', '#abc',
           '<a class="mk-toclify" id="test">hello</a>',
           'line',
           '[[back to top](#table-of-contents)] hello',
           'last line',
           ]
    out1 = ['This is a test', '#abc',
           'line',
           'last line',
           ]

    assert(mt.remove_lines(in1) == out1)
Пример #2
0
def test_remove_lines():
    in1 = [
        'This is a test',
        '#abc',
        '<a class="mk-toclify" id="test">hello</a>',
        'line',
        '[[back to top](#table-of-contents)] hello',
        'last line',
    ]
    out1 = [
        'This is a test',
        '#abc',
        'line',
        'last line',
    ]

    assert (mt.remove_lines(in1) == out1)