This should work as well:

```
self.assertEquals(expected_txn, txn) 
```

I believe `assertEquals` offloads that to a method called `assertDictEquals`