diff options
Diffstat (limited to 'tests/test_exceptions.py')
| -rw-r--r-- | tests/test_exceptions.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py new file mode 100644 index 0000000..497b3ef --- /dev/null +++ b/tests/test_exceptions.py | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | import adblock | ||
| 2 | |||
| 3 | def test_correct_baseclasses(): | ||
| 4 | assert issubclass(adblock.AdblockException, Exception) | ||
| 5 | assert issubclass(adblock.BlockerException, adblock.AdblockException) | ||
| 6 | assert issubclass(adblock.SerializationError, adblock.BlockerException) | ||
| 7 | assert issubclass(adblock.DeserializationError, adblock.BlockerException) | ||
| 8 | assert issubclass(adblock.OptimizedFilterExistence, adblock.BlockerException) | ||
| 9 | assert issubclass(adblock.BadFilterAddUnsupported, adblock.BlockerException) | ||
| 10 | assert issubclass(adblock.FilterExists, adblock.BlockerException) \ No newline at end of file | ||
