2011-11-17 17:06:39 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
openslides.participant.tests
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Unit tests for the participant app.
|
|
|
|
|
2012-04-25 22:29:19 +02:00
|
|
|
:copyright: 2011, 2012 by OpenSlides team, see AUTHORS.
|
2011-11-17 17:06:39 +01:00
|
|
|
:license: GNU GPL, see LICENSE for more details.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from django.test import TestCase
|
|
|
|
|
|
|
|
class SimpleTest(TestCase):
|
|
|
|
def test_basic_addition(self):
|
|
|
|
"""
|
|
|
|
Tests that 1 + 1 always equals 2.
|
|
|
|
"""
|
|
|
|
self.failUnlessEqual(1 + 1, 2)
|
|
|
|
|
|
|
|
__test__ = {"doctest": """
|
|
|
|
Another way to test that 1 + 1 is equal to 2.
|
|
|
|
|
|
|
|
>>> 1 + 1 == 2
|
|
|
|
True
|
|
|
|
"""}
|
|
|
|
|