← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1366797] [NEW] Add UT assert to check subset of dict

 

Public bug reported:

With the VPN unit tests, there are many occasions where there is a
desire to test if an actual dict contains keys and values specified in
some expected dict. The actual dict would be a superset, as there may be
keys (e.g. auth) that can be ignored.

Rather than make the change local to VPN code, this bug is suggesting to
add this as an assert into the base test class, so that everyone can use
it.

** Affects: neutron
     Importance: Undecided
     Assignee: Paul Michali (pcm)
         Status: In Progress

** Changed in: neutron
     Assignee: (unassigned) => Paul Michali (pcm)

** Changed in: neutron
       Status: New => In Progress

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

Title:
  Add UT assert to check subset of dict

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  With the VPN unit tests, there are many occasions where there is a
  desire to test if an actual dict contains keys and values specified in
  some expected dict. The actual dict would be a superset, as there may
  be keys (e.g. auth) that can be ignored.

  Rather than make the change local to VPN code, this bug is suggesting
  to add this as an assert into the base test class, so that everyone
  can use it.

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


Follow ups

References