-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
topic: rewriterelated to the assertion rewrite mechanismrelated to the assertion rewrite mechanismtopic: tracebacksrelated to displaying and handling of tracebacksrelated to displaying and handling of tracebackstype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature
Description
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?
signalpillar, gunthercox, bartekbrak, MarSoft, robinst and 14 more
Metadata
Metadata
Assignees
Labels
topic: rewriterelated to the assertion rewrite mechanismrelated to the assertion rewrite mechanismtopic: tracebacksrelated to displaying and handling of tracebacksrelated to displaying and handling of tracebackstype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature