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".
5 Replace these with more appropriate tests for your application.
8 from django
.test
import TestCase
10 class SimpleTest(TestCase
):
11 def test_basic_addition(self
):
13 Tests that 1 + 1 always equals 2.
15 self
.failUnlessEqual(1 + 1, 2)
17 __test__
= {"doctest": """
18 Another way to test that 1 + 1 is equal to 2.