PyTest - Writing Assertions
Given this code, which assertion correctly verifies that
obj is not the same object as None in pytest?obj = []
obj is not the same object as None in pytest?obj = []
obj is not the None object, use is not None.!= None and == None check value equality, which is less precise; is None checks identity but is opposite of what is needed.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions