Testing Fundamentals - Testing Types and Levels
Which of the following is the correct syntax for a simple unit test assertion in Python using
assert?assert?assert expression where expression must be True for test to pass.assert add(2, 3) == 5. assert add(2, 3) = 5 uses single = which is assignment, invalid here. assert(add(2, 3) = 5) uses single = which is assignment, invalid syntax. assert add(2, 3) equals 5 uses invalid keyword 'equals'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions