def test_round_trip(self): o = Bundle() o2 = round_trip(o, True) self.assertEqual(o.to_dict(), o2.to_dict())