Sign in
chromium
/
external
/
googleappengine
/
python
/
master
/
.
/
lib
/
django-1.3
/
tests
/
regressiontests
/
utils
/
functional.py
blob: 763d6964c16400e02217e6e9ef0ddb4e8c836f52 [
file
] [
log
] [
blame
]
from
django
.
utils
import
unittest
from
django
.
utils
.
functional
import
lazy
class
FunctionalTestCase
(
unittest
.
TestCase
):
def
test_lazy
(
self
):
t
=
lazy
(
lambda
:
tuple
(
range
(
3
)),
list
,
tuple
)
for
a
,
b
in
zip
(
t
(),
range
(
3
)):
self
.
assertEqual
(
a
,
b
)