bgneal@33: """ bgneal@33: This file demonstrates two different styles of tests (one doctest and one bgneal@33: unittest). These will both pass when you run "manage.py test". bgneal@33: bgneal@33: Replace these with more appropriate tests for your application. bgneal@33: """ bgneal@33: bgneal@33: from django.test import TestCase bgneal@33: bgneal@33: class SimpleTest(TestCase): bgneal@33: def test_basic_addition(self): bgneal@33: """ bgneal@33: Tests that 1 + 1 always equals 2. bgneal@33: """ bgneal@33: self.failUnlessEqual(1 + 1, 2) bgneal@33: bgneal@33: __test__ = {"doctest": """ bgneal@33: Another way to test that 1 + 1 is equal to 2. bgneal@33: bgneal@33: >>> 1 + 1 == 2 bgneal@33: True bgneal@33: """} bgneal@33: