示例#1
0
 def test_subscribe_customer_to_second_plan(self) -> None:
     with self.assertRaisesRegex(BillingError,
                                 'subscribing with existing subscription'):
         do_subscribe_customer_to_plan(self.example_user("iago"),
                                       mock_customer_with_subscription(),
                                       self.stripe_plan_id, self.quantity,
                                       0)
示例#2
0
文件: test_stripe.py 项目: kou/zulip
 def test_subscribe_customer_to_second_plan(self) -> None:
     with self.assertRaisesRegex(BillingError, 'subscribing with existing subscription'):
         do_subscribe_customer_to_plan(self.example_user("iago"),
                                       mock_customer_with_subscription(),
                                       self.stripe_plan_id, self.quantity, 0)