~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlsearch/tests.py

  • Committer: franku
  • Date: 2017-09-12 18:04:34 UTC
  • mto: This revision was merged to the branch mainline in revision 473.
  • Revision ID: somal@arcor.de-20170912180434-oywhxkfkq5yq2267
added news and wiki; css changes; removed django_sphinx

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
"""This file demonstrates two different styles of tests (one doctest and one
2
 
unittest). These will both pass when you run "manage.py test".
3
 
 
4
 
Replace these with more appropriate tests for your application.
5
 
 
6
 
"""
7
 
 
8
 
from django.test import TestCase
9
 
 
10
 
 
11
 
class SimpleTest(TestCase):
12
 
 
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
 
"""}