def METHOD_NAME(self, setup_db, image_dir):
    path = static_dir + '/logos/logo-en.png'
    data = open(path).read()
    d = coverlib.save_image(data, category='b', olid='OL1M')
    assert 'OL1M' in d.filename
    path = config.data_root + '/localdisk/' + d.filename
    assert open(path).read() == data