view savane/svpeople/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 05d27bf8ca84
children
line wrap: on
line source

# Jobs 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 = [
        ]

    def test_010_view_job(self):
        """
        Create a job
        """
        response = self.client.get(reverse('savane:svpeople:job_detail', args=(1,)))
        self.assertEqual(response.status_code, 200)