File: test_testing.py

package info (click to toggle)
python-sybil 9.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,164 kB
  • sloc: python: 4,545; makefile: 90
file content (18 lines) | stat: -rw-r--r-- 481 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from testfixtures import ShouldAssert

from sybil import Sybil
from sybil.testing import check_sybil, check_lexer


class TestCheckSybil:

    def test_no_matches(self):
        with ShouldAssert("Expected exactly one example, got: []"):
            check_sybil(Sybil([]), "")


class TestCheckLexer:

    def test_no_matches(self):
        with ShouldAssert("Expected exactly one region, got: []"):
            check_lexer(lambda _: [], "", expected_text="", expected_lexemes={})