File: test_utils.py

package info (click to toggle)
python-mechanicalsoup 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 416 kB
  • sloc: python: 2,165; makefile: 150
file content (10 lines) | stat: -rw-r--r-- 268 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
import pytest

import mechanicalsoup


def test_LinkNotFoundError():
    with pytest.raises(mechanicalsoup.LinkNotFoundError):
        raise mechanicalsoup.utils.LinkNotFoundError
    with pytest.raises(Exception):
        raise mechanicalsoup.utils.LinkNotFoundError