Skip to content

Commit 244cecc

Browse files
committed
1 parent daf4562 commit 244cecc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,8 @@ def u(self, string):
5454
"""Create a unicode string, compatible across all versions of Python."""
5555
# NOTE(cbro): Python 3-3.2 does not have the u'' syntax.
5656
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

Comments
 (0)