def get_account_allocations(self): allocation_data = self.checkout_session._get('accounts', 'allocations', '{}') return Allocations.deserialize(allocation_data)
def test_deserialize(self): obj = Allocations.deserialize('{"C": "10.00", "D": "12.00"}') items = list(obj.items()) self.assertCountEqual(items, [('C', D('10.00')), ('D', D('12.00'))])
def get_account_allocations(self): allocation_data = self.checkout_session._get("accounts", "allocations", "{}") return Allocations.deserialize(allocation_data)