Esempio 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)
Esempio 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)
Esempio 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
Esempio 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