File: test_exceptions.py

package info (click to toggle)
python-internetarchive 1.8.1-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 832 kB
  • sloc: python: 4,646; makefile: 180; xml: 180
file content (8 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (2)
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"""