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