Django

Code

Changeset 2480

Show
Ignore:
Timestamp:
03/03/06 16:42:16 (3 years ago)
Author:
lukeplant
Message:

magic-removal: Improved clarity of a test (now possible due to ordering on model)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/magic-removal/tests/modeltests/basic/models.py

    r2307 r2480  
    222222>>> s1 = Article.objects.filter(id__exact=1) 
    223223>>> s2 = Article.objects.filter(id__exact=2) 
    224 >>> tmp = [a.id for a in list(s1 | s2)] 
    225 >>> tmp.sort() 
    226 >>> tmp 
    227 [1L, 2L] 
    228 >>> list(s1 & s2) 
     224>>> s1 | s2 
     225[Area woman programs in Python, Second article] 
     226>>> s1 & s2 
    229227[] 
    230228