view savane/tracker/tests.py @ 356:c05f52b49a3c

Base fixtures for trackers (bugs only) + 1 test for svpeople/jobs
author Sylvain Beucler <beuc@beuc.net>
date Sun, 31 Oct 2010 21:59:24 +0100
parents 8e07641c425e
children
line wrap: on
line source

# Trackers tests
# Copyright (C) 2010  Sylvain Beucler
#
# This file is part of Savane.
# 
# Savane is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# 
# Savane 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 Affero General Public License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from django.test import TestCase
from django.core.urlresolvers import reverse

class SimpleTest(TestCase):
    fixtures = [
        'tracker.yaml',
        'fieldusage.yaml',
        'fieldchoice.yaml',
        'demo/item.yaml',
        ]

    def test_010_view_item(self):
        """
        Consult a tracker item
        """
        response = self.client.get(reverse('savane:tracker:item_detail', args=('bugs', 1)))
        self.assertEqual(response.status_code, 200)