예제 #1
0
def test_testinfo_payload__matchs():
    testinfo = "1234"
    text = 'asdasd \ntestinfo= "' + testinfo + '"   \nZZZ'
    assert hl.testinfo_payload(text) == testinfo
예제 #2
0
def test_testinfo_payload__no_matchs():
    text = 'asdasd \ntestinfo= ' + '   \nZZZ'
    assert hl.testinfo_payload(text)==None
예제 #3
0
def test_testinfo_payload__no_matchs():
    text = 'asdasd \ntestinfo= ' + '   \nZZZ'
    assert hl.testinfo_payload(text)==None
예제 #4
0
def test_testinfo_payload__matchs():
    testinfo = "1234"
    text = 'asdasd \ntestinfo= "' + testinfo + '"   \nZZZ'
    assert hl.testinfo_payload(text) == testinfo