summaryrefslogtreecommitdiff
path: root/tests/functional/a/assert_on_tuple.py
blob: cf785d53a8fc762291233df1f1f4529659005a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
'''Assert check example'''

# pylint: disable=comparison-with-itself, comparison-of-constants, line-too-long
assert (1 == 1, 2 == 2), "message is raised even when there is an assert message"  # [assert-on-tuple]
assert (1 == 1, 2 == 2) # [assert-on-tuple]
assert 1 == 1, "no error"
assert (1 == 1, ), "message is raised even when there is an assert message"  # [assert-on-tuple]
assert (1 == 1, ) # [assert-on-tuple]
assert (1 == 1, 2 == 2, 3 == 5), "message is raised even when there is an assert message"  # [assert-on-tuple]
assert ()
assert (True, 'error msg') # [assert-on-tuple]