MatchesStructure doesn't work with dicts
Bug #972135 reported by
Julian Edwards
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
MatchesStructure is one of my favourite matchers! However, it doesn't work if the matchee is a dict, like this:
params = {"this": 1, "that": 2, "tother":3}
user.this = 1
user.that = 2
user.tother = 3
params,
If it detected that "params" was a dict and DTRT, that would be awesome.
To post a comment you must log in.
Good thought!