]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add unit-test assert to check dict is superset of dict
authorPaul Michali <pcm@cisco.com>
Mon, 8 Sep 2014 14:41:50 +0000 (10:41 -0400)
committerPaul Michali <pcm@cisco.com>
Mon, 8 Sep 2014 17:12:24 +0000 (13:12 -0400)
commitc6c881160ce9502e0b77235022e7726688c45be7
tree2948cd5f0d246cf7e09853dcd293d56003d567a6
parentf2c7ee79420fd60b6323b086e316e5747b9e9757
Add unit-test assert to check dict is superset of dict

Several VPN unit tests need the ability to check that an expected
dict is found in the actual dict output (and that other elements are
ignored - like auth tokens).

Since this will be of use to other components, adding this to the
base test case.

Note: There is a similar assertDictContainsSubset(), however, it is
not supported in 2.6 and has been deprecated in 3.2. A different, and
hopefully clearer, name is used for this method.

Change-Id: I8becf9cfad966874f8463a9c835331f2f17d2ead
Closes-Bug: 1366797
neutron/tests/base.py