diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2017-03-06 19:20:34 -0800 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2017-03-06 19:20:34 -0800 |
commit | 7f009c630f33021898d74a664702eecac6e799f4 (patch) | |
tree | 18a32cf5b5d5c9f06e9d5c61df64ad1ce3739af1 /tests/test_expanded.py | |
parent | 6e38853c99a6b01513dc4595e5103e848a09e63d (diff) |
Add support for unicode chars in expanded mode.
Diffstat (limited to 'tests/test_expanded.py')
-rw-r--r-- | tests/test_expanded.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_expanded.py b/tests/test_expanded.py index e1b61a1d..57ef2128 100644 --- a/tests/test_expanded.py +++ b/tests/test_expanded.py @@ -1,3 +1,4 @@ +# coding=UTF-8 from pgcli.packages.expanded import expanded_table def test_expanded_table_renders(): @@ -11,3 +12,12 @@ name | world age | 456 """ assert expected == expanded_table(input, ["name", "age"]) + +def test_unicode_expanded_table(): + input = [(u'ö', 123)] + + expected = u"""-[ RECORD 0 ]------------------------- +name | ö +age | 123 +""" + assert expected == expanded_table(input, ["name", "age"]) |