PyTest - Writing Assertions
What will happen when this pytest code runs?
fruits = ['mango', 'orange', 'grape'] assert 'apple' not in fruits
fruits = ['mango', 'orange', 'grape'] assert 'apple' not in fruits
fruits, so the condition 'apple' not in fruits is True.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions