Misuse of assertTrue

Bug #1750537 reported by Takashi Natsume
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Medium
Takashi Natsume

Bug Description

In tempest/api/image/v2/test_images_metadefs_namespace_tags.py, there is a misuse of assertTrue.

https://github.com/openstack/tempest/blob/ac25e0d0dbbe6fb1104b5388ae9c6a9a63e5281e/tempest/api/image/v2/test_images_metadefs_namespace_tags.py#L52

self.assertTrue(3, len(body['tags']))

It should be as follows:

self.assertEqual(3, len(body['tags']))

Changed in tempest:
assignee: nobody → Takashi NATSUME (natsume-takashi)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/546116

Changed in tempest:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/546116
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=396940a619d6ed6308973baa2fa4f9f65e6eb284
Submitter: Zuul
Branch: master

commit 396940a619d6ed6308973baa2fa4f9f65e6eb284
Author: Takashi NATSUME <email address hidden>
Date: Tue Feb 20 19:55:25 2018 +0900

    Fix misuse of assertTrue

    Replace 'assertTrue' with 'assertEqual'.

    Change-Id: I725775d2eeb9d050aa2384499a9a282b1c4e5239
    Closes-Bug: #1750537

Changed in tempest:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tempest 18.0.0

This issue was fixed in the openstack/tempest 18.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.