Cannot overwrite Fake object's __str__

Create issue
Issue #16 new
cburgmer created an issue

I need my fake object to return a special value for str(). However the following does not work: {{{

import fudge f = fudge.Fake().provides('str').returns("b") f.str() 'b' str(f) 'fake:unnamed' }}} Looking of Fudge's Fake class implementation, I don't really understand where things run afoul. Probably need to read up on getattribute again.

Comments (0)

  1. Log in to comment