Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

assert_on_tuple.py 331B

1234567891011
  1. '''Assert check example'''
  2. # pylint: disable=misplaced-comparison-constant
  3. assert (1 == 1, 2 == 2), "no error"
  4. assert (1 == 1, 2 == 2) # [assert-on-tuple]
  5. assert 1 == 1, "no error"
  6. assert (1 == 1, ), "no error"
  7. assert (1 == 1, )
  8. assert (1 == 1, 2 == 2, 3 == 5), "no error"
  9. assert ()
  10. assert (True, 'error msg') # [assert-on-tuple]