File: exceptions_test.py

package info (click to toggle)
wand 0.6.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,796 kB
  • sloc: python: 14,107; makefile: 112
file content (21 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from wand.exceptions import (BaseFatalError, BaseError, BaseWarning,
                             BlobFatalError, BlobError, BlobWarning,
                             WandFatalError, WandError, WandWarning)


def test_base_wand_error():
    assert issubclass(WandError, BaseError)
    assert issubclass(BlobError, BaseError)
    assert not issubclass(BlobError, WandError)


def test_base_wand_warning():
    assert issubclass(WandWarning, BaseWarning)
    assert issubclass(BlobWarning, BaseWarning)
    assert not issubclass(BlobWarning, WandWarning)


def test_base_wand_fatal_error():
    assert issubclass(WandFatalError, BaseFatalError)
    assert issubclass(BlobFatalError, BaseFatalError)
    assert not issubclass(BlobFatalError, WandFatalError)