~ubuntu-branches/ubuntu/quantal/python-django/quantal

« back to all changes in this revision

Viewing changes to django/conf/app_template/tests.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2009-07-29 11:26:28 UTC
  • mfrom: (1.1.8 upstream) (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090729112628-pg09ino8sz0sj21t
Tags: 1.1-1
* New upstream release.
* Merge from experimental:
  - Ship FastCGI initscript and /etc/default file in python-django's examples
    directory (Closes: #538863)
  - Drop "05_10539-sphinx06-compatibility.diff"; it has been applied
    upstream.
  - Bump Standards-Version to 3.8.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
This file demonstrates two different styles of tests (one doctest and one
 
3
unittest). These will both pass when you run "manage.py test".
 
4
 
 
5
Replace these with more appropriate tests for your application.
 
6
"""
 
7
 
 
8
from django.test import TestCase
 
9
 
 
10
class SimpleTest(TestCase):
 
11
    def test_basic_addition(self):
 
12
        """
 
13
        Tests that 1 + 1 always equals 2.
 
14
        """
 
15
        self.failUnlessEqual(1 + 1, 2)
 
16
 
 
17
__test__ = {"doctest": """
 
18
Another way to test that 1 + 1 is equal to 2.
 
19
 
 
20
>>> 1 + 1 == 2
 
21
True
 
22
"""}
 
23