File: test_oauth_error.py

package info (click to toggle)
python-stripe 12.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,864 kB
  • sloc: python: 157,573; makefile: 13; sh: 9
file content (13 lines) | stat: -rw-r--r-- 338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-


from stripe import oauth_error


class TestOAuthError(object):
    def test_error_object(self):
        err = oauth_error.OAuthError(
            "message", "description", json_body={"error": "some_oauth_error"}
        )
        assert err.error is not None
        assert err.error.error == "some_oauth_error"