Deprecate assertDictContainsSubset()

This commit is contained in:
Raymond Hettinger 2010-12-21 19:24:26 +00:00
parent f259076790
commit 8ebe27f300
4 changed files with 22 additions and 4 deletions

View file

@ -934,6 +934,8 @@ class TestCase(object):
def assertDictContainsSubset(self, subset, dictionary, msg=None):
"""Checks whether dictionary is a superset of subset."""
warnings.warn('assertDictContainsSubset is deprecated',
DeprecationWarning)
missing = []
mismatched = []
for key, value in subset.items():