def test_creates_subs_using_response(self): subs = Subscription.list() self.assertEqual(len(subs), 1) subscription = subs[0] self.assertEqual(subscription.id, 'fake-sub-id-abcdef1234567890abcd')
def test_fetches_subs_by_passing_arguments_to_client(self): Subscription.list(foo='bar', user_id='user-id') self.client.list_subscriptions.assert_called_with(foo='bar', user_id='user-id')
def test_fetches_subs_by_passing_arguments_to_client(self): Subscription.list(foo='bar', user_id='user-id') self.client.list_subscriptions.assert_called_with( foo='bar', user_id='user-id')