Exemplo n.º 1
0
def test_listtablebasic012indent():
    res = ''.join(
        x.rstrip() + '\n'
        for x in gridtable([' ' * 3 + x for x in badtable012], join='012'))
    assert res == ''.join([
        ' ' * 3 + x if x.strip() else x
        for x in badtable012res.splitlines(True)
    ])
Exemplo n.º 2
0
def test_listtablejoin3():
    res = ''.join(gridtable(joindata, join='0'))
    assert res == jd3
Exemplo n.º 3
0
def test_listtablejoin1():
    res = ''.join(gridtable(joindata))
    assert res == jd1
Exemplo n.º 4
0
def test_listtablebasic012():
    res = ''.join(x.rstrip() + '\n'
                  for x in gridtable(badtable012, join='012'))
    assert res == badtable012res
Exemplo n.º 5
0
def test_listtablebasic0():
    res = ''.join(x.rstrip() + '\n' for x in gridtable(badtables, join='0'))
    assert res == badtableres
Exemplo n.º 6
0
def test_listtablebasic012indent():
    res = ''.join(gridtable([' ' * 3 + x for x in badtable012], join='012'))
    assert res == ''.join(
        [' ' * 3 + x for x in badtable012res.splitlines(True)])
Exemplo n.º 7
0
def test_listtablebasic012():
    res = ''.join(gridtable(badtable012, join='012'))
    assert res == badtable012res
Exemplo n.º 8
0
def test_listtablebasic0():
    res = ''.join(gridtable(badtables, join='0'))
    assert res == badtableres