'Test the map save method generates a thumbnail link'

def test_map_thumbnail(self):

    self.client.login(username='norman', password='norman')
    norman = get_user_model().objects.get(username='norman')
    saved_layer = file_upload(os.path.join(gisdata.VECTOR_DATA, 'san_andres_y_providencia_poi.shp'), name='san_andres_y_providencia_poi_by_norman', user=norman, overwrite=True)
    saved_layer.set_default_permissions()
    map_obj = Map(owner=norman, zoom=0, center_x=0, center_y=0)
    map_obj.create_from_layer_list(norman, [saved_layer], 'title', '')
    thumbnail_url = map_obj.get_thumbnail_url()
    assert (thumbnail_url != staticfiles.static(settings.MISSING_THUMBNAIL))
