annotate examples/project/zoo/tests.py @ 11:9af906a73061
added a 404.html file and updated the testcases to run against Django svn rev 8693 (post 1.0b1)
author |
Victor Ng <victor@monkeybean.ca> |
date |
Fri, 29 Aug 2008 00:46:22 -0400 |
parents |
35178e70f1cd |
children |
|
rev |
line source |
8
|
1 from django.test import TestCase
|
|
2 from project.zoo.models import Zoo
|
|
3
|
|
4 class TestDjango(TestCase):
|
|
5 def testcase1(self):
|
|
6 zoo = Zoo.objects.create(name='blah')
|
|
7 assert Zoo.objects.count() == 1
|
|
8
|
|
9 def testcase2(self):
|
|
10 zoo = Zoo.objects.create(name='blah')
|
|
11 assert Zoo.objects.count() == 1
|
|
12
|