~ubuntu-branches/ubuntu/quantal/python-django/quantal

« back to all changes in this revision

Viewing changes to tests/regressiontests/utils/itercompat.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2008-11-15 19:15:33 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081115191533-xbt1ut2xf4fvwtvc
Tags: 1.0.1-0ubuntu1
* New upstream release:
  - Bug fixes.

* The tests/ sub-directory appaers to have been dropped upstream, so pull
  our patch to workaround the tests and modify the rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
"""
2
 
# Tests of the utils itercompat library.
3
 
 
4
 
>>> from django.utils.itercompat import sorted as compat_sorted
5
 
 
6
 
# Check the replacement version of sorted
7
 
>>> x = [5,1,4,2,3]
8
 
>>> y = compat_sorted(x)
9
 
>>> print y
10
 
[1, 2, 3, 4, 5]
11
 
 
12
 
>>> print x 
13
 
[5, 1, 4, 2, 3]
14
 
 
15
 
"""
 
 
b'\\ No newline at end of file'