/[soapbox]/prolatio/music_tagger/tests.py
ViewVC logotype

Contents of /prolatio/music_tagger/tests.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3028 - (show annotations) (download) (as text)
Sun Sep 5 13:38:08 2010 UTC (11 years, 8 months ago) by tadas
File MIME type: text/x-python
File size: 514 byte(s)
Music library/music e-shop based on django and satchmo
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

tadas_AT_dailyda_DOT_com
ViewVC Help
Powered by ViewVC 1.1.8