'Method to check if a layer was correctly uploaded to the
GeoNode.
arguments: file path, the django http response
Checks to see if a layer is configured in Django
Checks to see if a layer is configured in GeoServer
checks the Rest API
checks the get cap document'

def complete_upload(self, file_path, resp, data, is_raster=False):

    (layer_name, ext) = os.path.splitext(os.path.basename(file_path))
    self.check_save_step(resp, data)
    layer_page = self.finish_upload(data['redirect_to'], layer_name, is_raster)
    self.check_layer_complete(layer_page, layer_name)
