Files
codeql/python/ql/src/Statements/AssertOnTuple.py
2018-11-19 15:10:42 +00:00

8 lines
296 B
Python

assert xxx and yyy # Alternative 1a. Check both expressions are true
assert xxx, yyy # Alternative 1b. Check 'xxx' is true, 'yyy' is the failure message.
tuple = (xxx, yyy) # Alternative 2. Check both elements of the tuple match expectations.
assert tuple[0]==xxx
assert tuple[1]==yyy