Comment 15 for bug 1687955

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to osc-lib (master)

Reviewed: https://review.openstack.org/479463
Committed: https://git.openstack.org/cgit/openstack/osc-lib/commit/?id=596af360fb43cc20ad634834af34ff5a0919743c
Submitter: Jenkins
Branch: master

commit 596af360fb43cc20ad634834af34ff5a0919743c
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
    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.

    An example of the usage of the new methods is found at:
    https://review.openstack.org/#/c/462170/ or related reviews.

    Related-Bug: #1687955
    Related to blueprint osc-formattable-columns

    Change-Id: Ib801f6204e7a694c597d93a3a6d40dc500212f65