← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1265701] [NEW] Need use assertTrue/assertFalse replace assertEqual boolean value

 

Public bug reported:

unittest.TestCase has methods assertTrue/assertFalse to assert boolean value. But some test codes
used assertEqual to compare with boolean value.   Using  assertTrue/assertFalse is more readable and clear.
aslo less code.

** Affects: glance
     Importance: Undecided
         Status: New

** Affects: keystone
     Importance: Undecided
         Status: New

** Affects: neutron
     Importance: Undecided
         Status: New

** Affects: oslo
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1265701

Title:
  Need use assertTrue/assertFalse replace assertEqual  boolean value

Status in OpenStack Image Registry and Delivery Service (Glance):
  New
Status in OpenStack Identity (Keystone):
  New
Status in OpenStack Neutron (virtual network service):
  New
Status in Oslo - a Library of Common OpenStack Code:
  New

Bug description:
  unittest.TestCase has methods assertTrue/assertFalse to assert boolean value. But some test codes
  used assertEqual to compare with boolean value.   Using  assertTrue/assertFalse is more readable and clear.
  aslo less code.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1265701/+subscriptions


Follow ups

References