Ticket #11761: tests.py
| File tests.py, 509 bytes (added by , 17 years ago) |
|---|
| Line | |
|---|---|
| 1 | # -*- coding: utf-8 -*- |
| 2 | |
| 3 | from django.test import TestCase, TransactionTestCase |
| 4 | |
| 5 | |
| 6 | #for some reason, mixing TestCase with TransactionTestCase will fail weirdly, |
| 7 | #quiet possibly it's django bug, remove 'pass' if you want to test for transactions |
| 8 | class TestSlugs(TransactionTestCase): |
| 9 | pass |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | class TestDatabaseIntegrity(TransactionTestCase): |
| 15 | def test_add_duplicate_items(self): |
| 16 | return |
| 17 | |
| 18 | |
| 19 | class Test1(TransactionTestCase): |
| 20 | def test(self): |
| 21 | self.client.get('/') |