def METHOD_NAME(self):
    """test built in JPEG format"""
    self.map.selectOutputFormat('JPEG')
    assert self.map.outputformat.mimetype == 'image/jpeg'
    self.map.getLayerByName('INLINE-PIXMAP-RGBA').status = mapscript.MS_ON
    img = self.map.draw()
    assert img.format.mimetype == 'image/jpeg'
    filename = 'testBuiltInJPEGFormat.jpg'
    img.save(filename)