'Check that a layer shows up in GeoServer\'s get
capabilities document'

def check_layer_geoserver_caps(self, type_name):

    wms = get_wms(type_name=type_name)
    (ws, layer_name) = type_name.split(':')
    self.assertTrue((layer_name in wms.contents), ('%s    is    not    in    %s' % (layer_name, wms.contents)))
