Skip to content

Commit

Permalink
Add retrieval by ch ID test
Browse files Browse the repository at this point in the history
  • Loading branch information
fay-stripe committed May 7, 2018
1 parent 47e226c commit 793c673
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/api_resources/test_issuer_fraud_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


TEST_RESOURCE_ID = 'issfr_123'
TEST_CHARGE_ID = 'ch_123'


class IssuerFraudRecordTest(StripeTestCase):
Expand All @@ -22,3 +23,11 @@ def test_is_retrievable(self):
'/v1/issuer_fraud_records/%s' % TEST_RESOURCE_ID
)
self.assertIsInstance(resource, stripe.IssuerFraudRecord)

def test_is_retrievable_by_charge(self):
resource = stripe.IssuerFraudRecord.retrieve(TEST_CHARGE_ID)
self.assert_requested(
'get',
'/v1/issuer_fraud_records?charge=%s' % TEST_CHARGE_ID
)
self.assertIsInstance(resource, stripe.IssuerFraudRecord)

0 comments on commit 793c673

Please sign in to comment.