Mercurial > nosedjango
view 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 |
line wrap: on
line source
from django.test import TestCase from project.zoo.models import Zoo class TestDjango(TestCase): def testcase1(self): zoo = Zoo.objects.create(name='blah') assert Zoo.objects.count() == 1 import pdb pdb.set_trace() def testcase2(self): zoo = Zoo.objects.create(name='blah') assert Zoo.objects.count() == 1