def test__accept_false(): """Check invalid prefix""" # Arrange prefix = b"something invalid" # Act output = DdsImagePlugin._accept(prefix) # Assert assert not output
def test__accept_true(): """Check valid prefix""" # Arrange prefix = b"DDS etc" # Act output = DdsImagePlugin._accept(prefix) # Assert assert output