self.assertDictContainsSubset is in unittest in Standard Library.
See https://github.com/python/cpython/blob/bbd3cf8/Lib/unittest/case.py#L1122.
Googled and looked around, I haven't seen a way to do it.
In py.test, assert <dict> in <dict2> should be the same as self.assertDictContainsSubset(dict, dict2.
Is this already a feature and I'm missing it? Is py.test open to a PR for it?
self.assertDictContainsSubsetis in unittest in Standard Library.See https://github.com/python/cpython/blob/bbd3cf8/Lib/unittest/case.py#L1122.
Googled and looked around, I haven't seen a way to do it.
In py.test,
assert <dict> in <dict2>should be the same asself.assertDictContainsSubset(dict, dict2.Is this already a feature and I'm missing it? Is py.test open to a PR for it?