| 1 |
import stripe |
| 2 |
|
| 3 |
|
| 4 |
TEST_RESOURCE_ID = "vs_123" |
| 5 |
|
| 6 |
|
| 7 |
class TestVerificationReport(object): |
| 8 |
def test_is_listable(self, http_client_mock): |
| 9 |
resources = stripe.identity.VerificationReport.list() |
| 10 |
http_client_mock.assert_requested( |
| 11 |
"get", path="/v1/identity/verification_reports" |
| 12 |
) |
| 13 |
assert isinstance(resources.data, list) |
| 14 |
assert isinstance( |
| 15 |
resources.data[0], stripe.identity.VerificationReport |
| 16 |
) |
| 17 |
|
| 18 |
def test_is_retrievable(self, http_client_mock): |
| 19 |
resource = stripe.identity.VerificationReport.retrieve( |
| 20 |
TEST_RESOURCE_ID |
| 21 |
) |
| 22 |
http_client_mock.assert_requested( |
| 23 |
"get", |
| 24 |
path="/v1/identity/verification_reports/%s" % TEST_RESOURCE_ID, |
| 25 |
) |
| 26 |
assert isinstance(resource, stripe.identity.VerificationReport) |