Skip to content

Commit

Permalink
unwrap test isn't working
Browse files Browse the repository at this point in the history
  • Loading branch information
jrkerns committed Jun 16, 2015
1 parent 5600968 commit 322525c
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/core/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,15 @@ def expensive_property(self):

self.assertLess(cached_access_time, first_access_time)

def test_unwrap_func(self):
#TODO: can't figure this one out
class DumbClass:
# a wrapped function (due to decorator that doesn't use @wraps)
@lazyproperty
@type_accept()
def dumb_property(self):
return 'result'

d = DumbClass()
# def test_unwrap_func(self):
# #TODO: can't figure this one out
# class DumbClass:
# # a wrapped function (due to decorator that doesn't use @wraps)
# @type_accept()
# def dumb_property(self):
# return 'result'
#
# d = DumbClass()
# do something like assert dumb_property name isn't same as unwrapped name,
# but dumb_property doesn't have __name__ attr.

0 comments on commit 322525c

Please sign in to comment.