2009-01-06 13:27:39 +08:00
|
|
|
"""
|
2011-01-26 11:22:16 +08:00
|
|
|
This file demonstrates writing tests using the unittest module. These will pass
|
|
|
|
when you run "manage.py test".
|
2009-01-06 13:27:39 +08:00
|
|
|
|
2011-01-26 11:22:16 +08:00
|
|
|
Replace this with more appropriate tests for your application.
|
2009-01-06 13:27:39 +08:00
|
|
|
"""
|
|
|
|
|
|
|
|
from django.test import TestCase
|
|
|
|
|
2011-01-26 11:22:16 +08:00
|
|
|
|
2009-01-06 13:27:39 +08:00
|
|
|
class SimpleTest(TestCase):
|
|
|
|
def test_basic_addition(self):
|
|
|
|
"""
|
|
|
|
Tests that 1 + 1 always equals 2.
|
|
|
|
"""
|
2011-01-26 11:22:16 +08:00
|
|
|
self.assertEqual(1 + 1, 2)
|