File: test_exceptions.py

package info (click to toggle)
python-internetarchive 5.4.0-2~deb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,228 kB
  • sloc: python: 7,602; xml: 180; makefile: 180
file content (8 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
import internetarchive.exceptions


def test_AuthenticationError():
    try:
        raise internetarchive.exceptions.AuthenticationError('Authentication Failed')
    except Exception as exc:
        assert str(exc) == 'Authentication Failed'