PyTest - Writing Assertions
Identify the error in this pytest assertion:
def test_strings():
s1 = "hello"
s2 = "Hello"
assert s1 != s2def test_strings():
s1 = "hello"
s2 = "Hello"
assert s1 != s2assert s1 != s2 correctly checks that the strings are not equal, so the test passes without error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions