comparison examples/project/zoo/tests.py @ 8:a82369f2574e

http client tests
author Victor Ng <victor@monkeybean.ca>
date Thu, 28 Aug 2008 12:42:31 -0400
parents
children 35178e70f1cd
comparison
equal deleted inserted replaced
7:dfba3a3a4343 8:a82369f2574e
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 import pdb
9 pdb.set_trace()
10
11 def testcase2(self):
12 zoo = Zoo.objects.create(name='blah')
13 assert Zoo.objects.count() == 1
14