File: test_bool_operators.py

package info (click to toggle)
restrictedpython 8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,576 kB
  • sloc: python: 4,120; makefile: 193
file content (13 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (2)
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