← Back to team overview

yahoo-eng-team team mailing list archive

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

 

** Also affects: oslo
   Importance: Undecided
       Status: New

** Also affects: glance
   Importance: Undecided
       Status: New

** Also affects: neutron
   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


References