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