コード例 #1
0
ファイル: test_util.py プロジェクト: obsoleter/petl
def test_lookstr():
    
    table = (('foo', 'bar'), ('a', 1), ('b', 2))
    actual = repr(lookstr(table))
    expect = """+-----+-----+
| foo | bar |
+=====+=====+
| a   | 1   |
+-----+-----+
| b   | 2   |
+-----+-----+
"""
    eq_(expect, actual)
コード例 #2
0
ファイル: test_util.py プロジェクト: pombredanne/petl
def test_lookstr():

    table = (('foo', 'bar'), ('a', 1), ('b', 2))
    actual = repr(lookstr(table))
    expect = """+-----+-----+
| foo | bar |
+=====+=====+
| a   |   1 |
+-----+-----+
| b   |   2 |
+-----+-----+
"""
    eq_(expect, actual)
コード例 #3
0
ファイル: test_util.py プロジェクト: talwai/petl
def test_lookstr():

    table = (("foo", "bar"), ("a", 1), ("b", 2))
    actual = repr(lookstr(table))
    expect = """+-----+-----+
| foo | bar |
+=====+=====+
| a   |   1 |
+-----+-----+
| b   |   2 |
+-----+-----+
"""
    eq_(expect, actual)