Skip to content
Browse files

flake8 lint fixups

  • Loading branch information...
1 parent a4ec1d5 commit f34ac0aadf90f8552cf724da50785acf139adb35 @jimdanz jimdanz committed Jan 29, 2014
Showing with 7 additions and 3 deletions.
  1. +7 −3 stripe/test/test_integration.py
View
10 stripe/test/test_integration.py
@@ -357,12 +357,14 @@ def test_create_and_cancel_customer_subscription(self):
subscription = customer.subscriptions.create(plan=DUMMY_PLAN['id'])
self.assertEqual(DUMMY_PLAN['id'], subscription.plan.id)
- customer.subscriptions.retrieve(subscription.id).delete(at_period_end=True)
+ subscription = customer.subscriptions.retrieve(subscription.id)
+ subscription.delete(at_period_end=True)
subscription = customer.subscriptions.retrieve(subscription.id)
self.assertEqual(subscription.status, 'active')
self.assertTrue(subscription.cancel_at_period_end)
- subscription = customer.subscriptions.retrieve(subscription.id).delete()
+ subscription = customer.subscriptions.retrieve(subscription.id)
+ subscription = subscription.delete()
self.assertEqual(subscription.status, 'canceled')
def test_create_and_update_customer_subscription(self):
@@ -377,7 +379,8 @@ def test_create_and_update_customer_subscription(self):
subscription.plan = subscription.plan.id
subscription.save()
- self.assertEqual(trial_end_int,
+ self.assertEqual(
+ trial_end_int,
customer.subscriptions.retrieve(subscription.id).trial_end)
def test_datetime_trial_end(self):
@@ -460,6 +463,7 @@ def test_attach_coupon(self):
customer.delete_discount()
self.assertEqual(None, customer.discount)
+
class SubscriptionCouponTest(StripeTestCase):
def setUp(self):

1 comment on commit f34ac0a

@mikez
mikez commented on f34ac0a Jan 30, 2014

Thanks @jimdanz

Please sign in to comment.
Something went wrong with that request. Please try again.