We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf4562 commit 244ceccCopy full SHA for 244cecc
test/__init__.py
@@ -54,3 +54,8 @@ def u(self, string):
54
"""Create a unicode string, compatible across all versions of Python."""
55
# NOTE(cbro): Python 3-3.2 does not have the u'' syntax.
56
return codecs.unicode_escape_decode(string)[0]
57
+
58
+ def assertDictContainsSubset(self, a, b, **kwargs):
59
+ """Replaces deprecated unittest.TestCase.assertDictContainsSubset"""
60
+ c = dict([(k, b[k]) for k in a.keys() if k in b.keys()])
61
+ self.assertEqual(a, c)
0 commit comments