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