Exemplo n.º 1
0
 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'))])
Exemplo n.º 3
0
 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'))])
Exemplo n.º 4
0
 def get_account_allocations(self):
     allocation_data = self.checkout_session._get('accounts', 'allocations', '{}')
     return Allocations.deserialize(allocation_data)
Exemplo n.º 5
0
 def get_account_allocations(self):
     allocation_data = self.checkout_session._get("accounts", "allocations",
                                                  "{}")
     return Allocations.deserialize(allocation_data)