Exemplo n.º 1
0
def test_unicode_expanded_table():
    input = [(u'ö', 123)]

    expected = u"""-[ RECORD 0 ]-------------------------
name | ö
age  | 123
"""
    assert expected == expanded_table(input, ["name", "age"])
Exemplo n.º 2
0
def test_expanded_table_renders():
    input = [("hello", 123),("world", 456)]

    expected = """-[ RECORD 0 ]
name | hello
age  | 123
-[ RECORD 1 ]
name | world
age  | 456
"""
    assert expected == expanded_table(input, ["name", "age"])
Exemplo n.º 3
0
def test_expanded_table_renders():
    input = [("hello", 123), ("world", 456)]

    expected = """-[ RECORD 0 ]
name | hello
age  | 123
-[ RECORD 1 ]
name | world
age  | 456
"""
    assert expected == expanded_table(input, ["name", "age"])