File: test_bool_operators.py

package info (click to toggle)
restrictedpython 8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,072 kB
  • sloc: python: 4,043; makefile: 193
file content (13 lines) | stat: -rw-r--r-- 246 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from tests.helper import restricted_eval


def test_Or():
    assert restricted_eval('False or True') is True


def test_And():
    assert restricted_eval('True and True') is True


def test_Not():
    assert restricted_eval('not False') is True