'Verify that GeoNode CSW can handle ISO metadata with ISO outputSchema'

def test_csw_outputschema_iso(self):

    csw = get_catalogue()
    csw.catalogue.getrecords(typenames='gmd:MD_Metadata', keywords=['%san_andres_y_providencia_location%'], outputschema='http://www.isotc211.org/2005/gmd', esn='full')
    record = csw.catalogue.records.values()[0]
    self.assertEqual(record.identification.title, 'San    Andres    Y    Providencia    Location', 'Expected    a    specific    title    in    ISO    model')
    self.assertEqual(record.identification.abstract, 'No    abstract    provided', 'Expected    a    specific    abstract    in    ISO    model')
    self.assertEqual(record.identification.bbox.minx, '-81.8593555', 'Expected    a    specific    minx    coordinate    value    in    ISO    model')
    self.assertEqual(record.identification.bbox.miny, '12.1665322', 'Expected    a    specific    minx    coordinate    value    in    ISO    model')
    self.assertEqual(record.identification.bbox.maxx, '-81.356409', 'Expected    a    specific    maxx    coordinate    value    in    ISO    model')
    self.assertEqual(record.identification.bbox.maxy, '13.396306', 'Expected    a    specific    maxy    coordinate    value    in    ISO    model')
    for link in record.distribution.online:
        if (link.protocol == 'OGC:WMS'):
            self.assertEqual(link.url, 'http://localhost:8080/geoserver/geonode/wms', 'Expected    a    specific    OGC:WMS    URL')
        elif (link.protocol == 'OGC:WFS'):
            self.assertEqual(link.url, 'http://localhost:8080/geoserver/geonode/wfs', 'Expected    a    specific    OGC:WFS    URL')
