PageRenderTime 16ms CodeModel.GetById 10ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/src/danseku/news/tests.py

https://bitbucket.org/danseku/danseku
Python | 23 lines | 21 code | 0 blank | 2 comment | 0 complexity | 1fde9e174e80f7680d95dc905a3533a3 MD5 | raw file
Possible License(s): BSD-3-Clause
 1"""
 2This file demonstrates two different styles of tests (one doctest and one
 3unittest). These will both pass when you run "manage.py test".
 4
 5Replace these with more appropriate tests for your application.
 6"""
 7
 8from django.test import TestCase
 9
10class 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": """
18Another way to test that 1 + 1 is equal to 2.
19
20>>> 1 + 1 == 2
21True
22"""}
23