Finished cleaning all the e-cidadania apps
[e_cidadania.git] / src / apps / ecidadania / proposals / tests.py
blob37b7eba8fe49ad135688dd19ab5a4c7e5ba950da
1 # -*- coding: utf-8 -*-
3 # Copyright (c) 2010-2012 Cidadania S. Coop. Galega
5 # This file is part of e-cidadania.
7 # e-cidadania is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # e-cidadania is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with e-cidadania. If not, see <http://www.gnu.org/licenses/>.
20 """
21 This file demonstrates two different styles of tests (one doctest and one
22 unittest). These will both pass when you run "manage.py test".
24 Replace these with more appropriate tests for your application.
25 """
27 from django.test import TestCase
29 class SimpleTest(TestCase):
30 def test_basic_addition(self):
31 """
32 Tests that 1 + 1 always equals 2.
33 """
34 self.failUnlessEqual(1 + 1, 2)
36 __test__ = {"doctest": """
37 Another way to test that 1 + 1 is equal to 2.
39 >>> 1 + 1 == 2
40 True
41 """}