~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlevents/tests.py

  • Committer: Holger Rapp
  • Date: 2009-02-21 18:24:02 UTC
  • Revision ID: sirver@kallisto.local-20090221182402-k3tuf5c4gjwslbjf
Main Page contains now the same informations as before

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
 
"""}