Пример #1
0
 def setUp(self):
     self.buyer, self.braintree_buyer = create_braintree_buyer()
     self.method = create_method(self.braintree_buyer)
     self.seller, self.seller_product = create_seller()
     self.sub = create_subscription(self.method, self.seller_product)
     self.url = reverse('braintree:mozilla:transaction-list')
     self.transaction = Transaction.objects.create(uuid='some:uid')
     super(TestBraintreeTransactionrMethod, self).setUp()
Пример #2
0
 def setUp(self):
     self.buyer, self.braintree_buyer = create_braintree_buyer()
     self.method = create_method(self.braintree_buyer)
     self.seller, self.seller_product = create_seller()
     self.sub = create_subscription(self.method, self.seller_product)
     self.url = reverse('braintree:mozilla:transaction-list')
     self.transaction = Transaction.objects.create(uuid='some:uid',
                                                   buyer=self.buyer)
     super(TestBraintreeTransaction, self).setUp()
Пример #3
0
 def setUp(self):
     super(TestClose, self).setUp()
     self.method, self.product = create_method_all()
     self.buyer = self.method.braintree_buyer.buyer
     self.sub = create_subscription(self.method, self.product)
Пример #4
0
 def setUp(self):
     super(TestClose, self).setUp()
     self.method, self.product = create_method_all()
     self.buyer = self.method.braintree_buyer.buyer
     self.sub = create_subscription(self.method, self.product)