DeepDiff — Recursively Find and Ignore Trivial Differences Using Python
Get a Meaningful Assertion Error When Comparing Two Python Objects
Published in
6 min readDec 6, 2021
Motivation
When comparing two Python objects, you might not want the test to focus on some trivial differences such as the order of the values in a list.
For example, you might want the test to consider[3, 2]
to be the same as [2, 3]
.