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

def test_csw_outputschema_dc(self):

    csw = get_catalogue()
    csw.catalogue.getrecords(typenames='gmd:MD_Metadata', keywords=['%san_andres_y_providencia_location%'], outputschema='http://www.opengis.net/cat/csw/2.0.2', esn='full')
    record = csw.catalogue.records.values()[0]
    self.assertEqual(record.title, 'San    Andres    Y    Providencia    Location', 'Expected    a    specific    title    in    Dublin    Core    model')
    self.assertEqual(record.abstract, 'No    abstract    provided', 'Expected    a    specific    abstract    in    Dublin    Core    model')
    for link in record.references:
        if (link['scheme'] == 'OGC:WMS'):
            self.assertEqual(link['url'], 'http://localhost:8080/geoserver/geonode/wms', 'Expected    a    specific    OGC:WMS    URL')
        elif (link['scheme'] == 'OGC:WFS'):
            self.assertEqual(link['url'], 'http://localhost:8080/geoserver/geonode/wfs', 'Expected    a    specific    OGC:WFS    URL')
