Ejemplo n.º 1
0
 def test_flip(self):
     process = Processor(notification(subject=subscription()))
     process.subscription = self.braintree_sub
     process.get_subscription()
     process.update_subscription(True)
     eq_(self.braintree_sub.reget().active, True)
     process.update_subscription(False)
     eq_(self.braintree_sub.reget().active, False)
Ejemplo n.º 2
0
 def test_flip(self):
     process = Processor(notification(subject=subscription()))
     process.subscription = self.braintree_sub
     process.get_subscription()
     process.update_subscription(True)
     eq_(self.braintree_sub.reget().active, True)
     process.update_subscription(False)
     eq_(self.braintree_sub.reget().active, False)
Ejemplo n.º 3
0
 def process(self, subscription):
     hook = Processor(notification(subject=subscription, kind=self.kind))
     hook.process()
     hook.get_subscription()
     hook.update_transactions()
     return hook
Ejemplo n.º 4
0
 def process(self, subscription):
     hook = Processor(notification(subject=subscription, kind=self.kind))
     hook.process()
     hook.get_subscription()
     hook.update_transactions()
     return hook