diff options
| author | xiexs <xiexs@cn.fujitsu.com> | 2016-05-19 22:59:26 -0400 |
|---|---|---|
| committer | xiexs <xiexs@cn.fujitsu.com> | 2016-05-19 23:25:36 -0400 |
| commit | 6e54ec81feb795a3d31030fd348774b4b8195364 (patch) | |
| tree | 6e171edda55f3112aa3be9323eb7cc786367451f /cinderclient/tests/unit/test_utils.py | |
| parent | 0cdcfb5988f57da80551b1a11fcd3d96d0baf1d8 (diff) | |
| download | python-cinderclient-6e54ec81feb795a3d31030fd348774b4b8195364.tar.gz | |
Fix the incorrect alignment
The "aligns" attribute no longer exists in the Prettytable,
"align" instead. So we should use "align" attribute to force
the output with left alignment by default.
Change-Id: I97b30216000b6e31c1bef614cf0b0d68ab8cfb08
Closes-Bug: #1583880
Diffstat (limited to 'cinderclient/tests/unit/test_utils.py')
| -rw-r--r-- | cinderclient/tests/unit/test_utils.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cinderclient/tests/unit/test_utils.py b/cinderclient/tests/unit/test_utils.py index 347a2d0..f780ade 100644 --- a/cinderclient/tests/unit/test_utils.py +++ b/cinderclient/tests/unit/test_utils.py @@ -221,10 +221,10 @@ class PrintListTestCase(test_utils.TestCase): # Output should be sorted by the first key (a) self.assertEqual("""\ +---+-----+ -| a | b | +| a | b | +---+-----+ | 1 | c d | -| 3 | a | +| 3 | a | +---+-----+ """, cso.read()) @@ -237,12 +237,12 @@ class PrintDictTestCase(test_utils.TestCase): utils.print_dict(d) self.assertEqual("""\ +----------+---------------+ -| Property | Value | +| Property | Value | +----------+---------------+ -| a | A | -| b | B | -| c | C | -| d | test carriage | -| | return | +| a | A | +| b | B | +| c | C | +| d | test carriage | +| | return | +----------+---------------+ """, cso.read()) |
