'Ensure that files whose extension is not supported fail validation.'

@ddt.data(('.gif', 'image/gif'), ('.jpg', 'image/jpeg'), ('.jpeg', 'image/jpeg'), ('.png', 'image/png'), ('.bmp', 'image/bmp', FILE_UPLOAD_BAD_TYPE), ('.tif', 'image/tiff', FILE_UPLOAD_BAD_TYPE))
@ddt.unpack
def test_extension(self, extension, content_type, expected_failure_message=None):

    with make_uploaded_file(extension=extension, content_type=content_type) as uploaded_file:
        self.check_validation_result(uploaded_file, expected_failure_message)
