Skip to content

Commit

Permalink
fix renaming error
Browse files Browse the repository at this point in the history
  • Loading branch information
toddsifleet committed Oct 3, 2015
1 parent 39a6eeb commit 25eb28c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doubles/target.py
Expand Up @@ -147,10 +147,10 @@ def get_callable_attr(self, attr_name):
:rtype: func
"""

if not hasattr(self.doubled_obj, method_name):
if not hasattr(self.doubled_obj, attr_name):
return None

func = getattr(self.doubled_obj, method_name)
func = getattr(self.doubled_obj, attr_name)
if not _is_callable(func):
return None

Expand All @@ -159,7 +159,7 @@ def get_callable_attr(self, attr_name):
'toplevel',
self.doubled_obj if self.is_class() else self.doubled_obj_type,
)
self.attrs[method_name] = attr
self.attrs[attr_name] = attr
return attr

def get_attr(self, method_name):
Expand Down

0 comments on commit 25eb28c

Please sign in to comment.