Add Catch-all Update-Retrieval to Advanced API
[mygpo.git] / mygpo / web / tests.py
blob66e97fcb84370b2de4d59a45bc0503e141fc17d9
2 # This file is part of my.gpodder.org.
4 # my.gpodder.org is free software: you can redistribute it and/or modify it
5 # under the terms of the GNU Affero General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or (at your
7 # option) any later version.
9 # my.gpodder.org is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
12 # License for more details.
14 # You should have received a copy of the GNU Affero General Public License
15 # along with my.gpodder.org. If not, see <http://www.gnu.org/licenses/>.
18 """
19 This file demonstrates two different styles of tests (one doctest and one
20 unittest). These will both pass when you run "manage.py test".
22 Replace these with more appropriate tests for your application.
23 """
25 from django.test import TestCase
27 class SimpleTest(TestCase):
28 def test_basic_addition(self):
29 """
30 Tests that 1 + 1 always equals 2.
31 """
32 self.failUnlessEqual(1 + 1, 2)
34 __test__ = {"doctest": """
35 Another way to test that 1 + 1 is equal to 2.
37 >>> 1 + 1 == 2
38 True
39 """}