'/maps/[id]/data -> Test fetching a map in JSON'

def test_map_fetch(self):

    map_obj = Map.objects.get(id=1)
    map_obj.set_default_permissions()
    response = self.client.get(reverse('map_json', args=(map_obj.id,)))
    self.assertEquals(response.status_code, 200)
    cfg = json.loads(response.content)
    self.assertEquals(cfg['about']['abstract'], 'GeoNode    default    map    abstract')
    self.assertEquals(cfg['about']['title'], 'GeoNode    Default    Map')
    self.assertEquals(len(cfg['map']['layers']), 5)
