Permalink
Browse files

Test for building URL with base query parameters.

  • Loading branch information...
1 parent 2e53679 commit 79e81ea75addcd890c3bb30578b88d98eb916f31 @amfeng amfeng committed Mar 12, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/test_stripe.py
View
6 test/test_stripe.py
@@ -121,6 +121,12 @@ def test_encoder_returns_dict(self):
self.assertTrue(isinstance(encoded_stripe_object, dict),
"StripeObject encoded to %s" % (type(encoded_stripe_object),))
+class StripeAPIRequestorTests(StripeTestCase):
+ def test_builds_url_correctly_with_base_url_query_params(self):
+ charges = stripe.Charge.all(count=5)
+ paid_charges = charges.all(paid=True)
+ self.assertTrue(isinstance(paid_charges.data, list))
+
class FunctionalTests(StripeTestCase):
def test_dns_failure(self):
api_base = stripe.api_base

0 comments on commit 79e81ea

Please sign in to comment.