'/maps/1/wmc -> Test map WMC export
Make some assertions about the data structure produced
for serialization to a Web Map Context Document'

def test_map_to_wmc(self):

    map_obj = Map.objects.get(id=1)
    map_obj.set_default_permissions()
    response = self.client.get(reverse('map_wmc', args=(map_obj.id,)))
    self.assertEquals(response.status_code, 200)
    wmc = etree.fromstring(response.content)
    namespace = '{http://www.opengis.net/context}'
    title = '{ns}General/{ns}Title'.format(ns=namespace)
    abstract = '{ns}General/{ns}Abstract'.format(ns=namespace)
    self.assertEquals(wmc.attrib.get('id'), '1')
    self.assertEquals(wmc.find(title).text, 'GeoNode    Default    Map')
    self.assertEquals(wmc.find(abstract).text, 'GeoNode    default    map    abstract')
