Ticket #11936: tests.py

File tests.py, 498 bytes (added by ryszard, 15 years ago)

tests to trigger the bug

Line 
1"""
2This file demonstrates two different styles of tests (one doctest and one
3unittest). These will both pass when you run "manage.py test".
4
5Replace these with more appropriate tests for your application.
6"""
7
8from django.test import TestCase
9from models import PathologicallyLongName
10class 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
Back to Top