'check everything to verify the layer is complete'

def check_layer_complete(self, layer_page, original_name):

    self.check_layer_geonode_page(layer_page)
    type_name = os.path.basename(layer_page)
    layer_name = type_name.split(':')[1]
    caps_found = False
    for i in range(10):
        time.sleep(0.5)
        try:
            self.check_layer_geoserver_caps(type_name)
            caps_found = True
        except:
            pass
    self.assertTrue(caps_found)
    self.check_layer_geoserver_rest(layer_name)
    self.check_upload_model(layer_name)
