'Test attributes syncronization'

def test_set_attributes_from_geoserver(self):

    shp_file = os.path.join(gisdata.VECTOR_DATA, 'san_andres_y_providencia_poi.shp')
    layer = file_upload(shp_file)
    for attribute in layer.attribute_set.all():
        attribute.attribute_label = ('%s_label' % attribute.attribute)
        attribute.description = ('%s_description' % attribute.attribute)
        attribute.save()
    set_attributes_from_geoserver(layer)
    for attribute in layer.attribute_set.all():
        self.assertEquals(attribute.attribute_label, ('%s_label' % attribute.attribute))
        self.assertEquals(attribute.description, ('%s_description' % attribute.attribute))
