def test_image_serializer_valid(self): assert check_if_valid(ImageFactoryWithImageFile(), ImageSerializer)