Add test methods to compare formattable column values
When formattable columns are used we cannot compare two items
just using assertEqual(item1, item2). We need to compare
two items column by column calling human_readable or
machine_readable methods.
This commit add convenient assert methods to encourage
the usage of cliff formattable columns in OSC.
Reviewed: https:/ /review. openstack. org/479463 /git.openstack. org/cgit/ openstack/ osc-lib/ commit/ ?id=596af360fb4 3cc20ad634834af 34ff5a0919743c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 596af360fb43cc2 0ad634834af34ff 5a0919743c
Author: Akihiro Motoki <email address hidden>
Date: Sat Jul 1 14:44:56 2017 +0900
Add test methods to compare formattable column values
When formattable columns are used we cannot compare two items readable methods.
just using assertEqual(item1, item2). We need to compare
two items column by column calling human_readable or
machine_
This commit add convenient assert methods to encourage
the usage of cliff formattable columns in OSC.
An example of the usage of the new methods is found at: /review. openstack. org/#/c/ 462170/ or related reviews.
https:/
Related-Bug: #1687955 -columns
Related to blueprint osc-formattable
Change-Id: Ib801f6204e7a69 4c597d93a3a6d40 dc500212f65