This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kjachim
Recipients berdario, chillaranand, kjachim, michael.foord, rbcollins
Date 2015-04-13.15:39:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428939581.85.0.999567543685.issue23310@psf.upfronthosting.co.za>
In-reply-to
Content
For Mock both the following tests fail, I would say it is an expected behavior.

def test_setting_magic_method_for_mock(self):
    m = Mock()
    m.configure_mock(**{'__str__.return_value': "14"})
    self.assertEqual(str(m), "14")
        
def test_setting_magic_method_in_mock_initialization(self):
    m = Mock(**{'__str__.return_value': "12"})
    self.assertEqual(str(m), "12")
History
Date User Action Args
2015-04-13 15:39:41kjachimsetrecipients: + kjachim, rbcollins, michael.foord, berdario, chillaranand
2015-04-13 15:39:41kjachimsetmessageid: <1428939581.85.0.999567543685.issue23310@psf.upfronthosting.co.za>
2015-04-13 15:39:41kjachimlinkissue23310 messages
2015-04-13 15:39:41kjachimcreate