コード例 #1
0
ファイル: client.py プロジェクト: pegler/gocardless-python
    def subscription(self, id):
        """
        Returns a single subscription

        :param id: The subscription id, String
        """
        return Subscription.find_with_client(id, self)
コード例 #2
0
    def subscription(self, id):
        """
        Returns a single subscription

        :param id: The subscription id, String
        """
        return Subscription.find_with_client(id, self)
コード例 #3
0
 def test_cancel_puts(self):
     client = mock.Mock()
     sub = Subscription(fixtures.subscription_json, client)
     sub.cancel()
     client.api_put.assert_called_with("/subscriptions/{0}/cancel".format(
         fixtures.subscription_json["id"]))
コード例 #4
0
 def test_cancel_puts(self):
     client = mock.Mock()
     sub = Subscription(fixtures.subscription_json, client)
     sub.cancel()
     client.api_put.assert_called_with("/subscriptions/{0}/cancel".format(
         fixtures.subscription_json["id"]))