Hello,
I have a test that fetches some JSON data from my API and compares it with the expected result, which is generated like this:
expected_json = {
'status': 'ok',
'invalid-fields': {},
'updated-fields': cloned_build.groupings.get(group=group1)
.field_values
.exclude(template=approvable_template)
.values_list('id', flat=True)[:],
}
At the end, I get this error:
AssertionError: {u'status': u'ok', u'invalid-fields': {}, u'updated-fields': [13, 14, 15]} != {u'status': u'ok', u'invalid-fields': {}, u'updated-fields': [13, 14, 15]}
{u'invalid-fields': {}, u'status': u'ok', u'updated-fields': [13, 14, 15]}
It seems the two dicts are equal, but assertEquals thinks they are not. Am I missing something here?
Best,
Gergely