2012-06-04 13:27:32 +00:00
|
|
|
"""
|
|
|
|
This file demonstrates writing tests using the unittest module. These will pass
|
|
|
|
when you run "manage.py test".
|
|
|
|
|
|
|
|
Replace this with more appropriate tests for your application.
|
|
|
|
"""
|
|
|
|
|
2012-08-08 02:09:02 +00:00
|
|
|
# from django.test import TestCase
|
2012-06-04 13:27:32 +00:00
|
|
|
|
|
|
|
|
2012-08-08 02:09:02 +00:00
|
|
|
# class SimpleTest(TestCase):
|
|
|
|
# def test_basic_addition(self):
|
|
|
|
# """
|
|
|
|
# Tests that 1 + 1 always equals 2.
|
|
|
|
# """
|
|
|
|
# self.assertEqual(1 + 1, 2)
|
|
|
|
|
|
|
|
|
|
|
|
from django.utils import unittest
|
|
|
|
|
|
|
|
class SimpleTestCase(unittest.TestCase):
|
|
|
|
def test_base_addition(self):
|
2012-06-04 13:27:32 +00:00
|
|
|
self.assertEqual(1 + 1, 2)
|