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)
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)
def process(self, subscription): hook = Processor(notification(subject=subscription, kind=self.kind)) hook.process() hook.get_subscription() hook.update_transactions() return hook
def process(self, subscription): hook = Processor(notification(subject=subscription, kind=self.kind)) hook.process() hook.get_subscription() hook.update_transactions() return hook