Beispiel #1
0
 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')
Beispiel #2
0
 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')
Beispiel #3
0
 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')
Beispiel #4
0
 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')