PyTest - Writing Assertions
Identify the error in this pytest assertion:
colors = ['red', 'blue', 'green'] assert 'yellow' not colors
colors = ['red', 'blue', 'green'] assert 'yellow' not colors
assert 'yellow' not colors, which is missing the keyword in after not.assert 'yellow' not in colors.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions