I am using Robot Framework with Python and Selenium. I need to verify that files have the correct format: specifically that they are image files (e.g.: .jpg, .jpeg, etc).
How do I use validations or assertions to verify that the files contain one of a list of allowed suffixes? This is not as simple as verifying that the files contain a single suffix - I have to check that the file is one of the allowed types.