diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/project/zoo/tests.py	Thu Aug 28 12:42:31 2008 -0400
@@ -0,0 +1,14 @@
+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
+