File: test_issue_104.py

package info (click to toggle)
python-sure 2.0.1%2Bgit.2023.02.06.3aef950b7c-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 744 kB
  • sloc: python: 3,512; makefile: 255; sh: 12
file content (12 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
from sure import expect


def test_issue_104():
    try:
        expect("hello").to.contain("world")
    except Exception:  # just to prevent syntax error because try/else does not exist
        pass
    else:
        raise SystemExit("Oops")

    expect("hello world").to.contain("world")