~widelands-dev/widelands-website/django_staticfiles

404.1.20 by GunChleoc
Ran pyformat.
1
"""This file demonstrates two different styles of tests (one doctest and one
32 by Holger Rapp
First version of widelands online help
2
unittest). These will both pass when you run "manage.py test".
3
4
Replace these with more appropriate tests for your application.
404.1.20 by GunChleoc
Ran pyformat.
5
32 by Holger Rapp
First version of widelands online help
6
"""
7
8
from django.test import TestCase
9
404.1.20 by GunChleoc
Ran pyformat.
10
32 by Holger Rapp
First version of widelands online help
11
class SimpleTest(TestCase):
404.1.20 by GunChleoc
Ran pyformat.
12
32 by Holger Rapp
First version of widelands online help
13
    def test_basic_addition(self):
14
        """
15
        Tests that 1 + 1 always equals 2.
16
        """
17
        self.failUnlessEqual(1 + 1, 2)
18
404.1.20 by GunChleoc
Ran pyformat.
19
__test__ = {'doctest': """
32 by Holger Rapp
First version of widelands online help
20
Another way to test that 1 + 1 is equal to 2.
21
22
>>> 1 + 1 == 2
23
True
24
"""}