Ticket #11936: tests.py
| File tests.py, 498 bytes (added by , 16 years ago) |
|---|
| Line | |
|---|---|
| 1 | """ |
| 2 | This file demonstrates two different styles of tests (one doctest and one |
| 3 | unittest). These will both pass when you run "manage.py test". |
| 4 | |
| 5 | Replace these with more appropriate tests for your application. |
| 6 | """ |
| 7 | |
| 8 | from django.test import TestCase |
| 9 | from models import PathologicallyLongName |
| 10 | class SimpleTest(TestCase): |
| 11 | def test_aaa(self): |
| 12 | p = PathologicallyLongName() |
| 13 | p.save() |
| 14 | PathologicallyLongName.objects.all().only('id')[0] |
| 15 | |
| 16 | def test_bbb(self): |
| 17 | pass |
| 18 |