Source

nose-django / examples / project / zoo / tests.py

Full commit
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