view examples/project/zoo/tests.py @ 12:a6e52c3b64a8 tip

added a version code to nosedjango
author Victor Ng <victor@monkeybean.ca>
date Fri, 29 Aug 2008 14:10:47 -0400
parents 35178e70f1cd
children
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

    def testcase2(self):
        zoo = Zoo.objects.create(name='blah')
        assert Zoo.objects.count() == 1