Пример #1
0
    def test_it_sets_type_and_message(self):
        exc = exceptions.OAuthTokenError("boom", "mytype")

        assert exc.type == "mytype"
        assert str(exc) == "boom"
Пример #2
0
    def test_it_sets_default_response_code(self):
        exc = exceptions.OAuthTokenError("boom", "mytype")

        assert exc.status_code == 401