#/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2010-2012 Cidadania S. Coop. Galega
#
# This file is part of e-cidadania.
#
# e-cidadania is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# e-cidadania is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with e-cidadania. If not, see <http://www.gnu.org/licenses/>.


from tests.test_utils import ECDTestCase


class IndexTestCase(ECDTestCase):
    """Class to test index related views.
    """
    
    def testIndexView(self):
        """Tests the index view.
        """
        
        #url = self.getUrl(url_names.SITE_INDEX)
        url = '/'
        response = self.get(url)
        self.assertResponseOK(response)
#/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2010-2012 Cidadania S. Coop. Galega
#
# This file is part of e-cidadania.
#
# e-cidadania is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# e-cidadania is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with e-cidadania. If not, see <http://www.gnu.org/licenses/>.

from e_cidadania import url_names

from tests.test_utils import ECDTestCase


class IndexTestCase(ECDTestCase):   
    """Class to test index related views.
    """
    
    def testIndexView(self):
        """Tests the index view.
        """
        
        response = self.get(url_name=url_names.SITE_INDEX)
        self.assertResponseOK(response)
    
    def testIndexEntriesFeed(self):
        """Tests the index entries feed view.
        """
        
        response = self.get(url_name=url_names.SITE_FEED)
        self.assertResponseOK(response)
Add tests for core.views.index.py. The tests presently test only if the corresponding urls can be accessed.