~mhall119/youoneteeoh/add-requirements-file

« back to all changes in this revision

Viewing changes to uploader/tests.py

  • Committer: john.lenton at canonical
  • Author(s): sil
  • Date: 2011-11-21 14:07:12 UTC
  • mfrom: (7.1.3 u1to)
  • Revision ID: john.lenton@canonical.com-20111121140712-p382m4q3qzqb8c6y
Allow people to upload files to my U1 space.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
This file demonstrates two different styles of tests (one doctest and one
 
3
unittest). These will both pass when you run "manage.py test".
 
4
 
 
5
Replace these with more appropriate tests for your application.
 
6
"""
 
7
 
 
8
from django.test import TestCase
 
9
 
 
10
class SimpleTest(TestCase):
 
11
    def test_basic_addition(self):
 
12
        """
 
13
        Tests that 1 + 1 always equals 2.
 
14
        """
 
15
        self.failUnlessEqual(1 + 1, 2)
 
16
 
 
17
__test__ = {"doctest": """
 
18
Another way to test that 1 + 1 is equal to 2.
 
19
 
 
20
>>> 1 + 1 == 2
 
21
True
 
22
"""}
 
23