Message240626
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") |
|
Date |
User |
Action |
Args |
2015-04-13 15:39:41 | kjachim | set | recipients:
+ kjachim, rbcollins, michael.foord, berdario, chillaranand |
2015-04-13 15:39:41 | kjachim | set | messageid: <1428939581.85.0.999567543685.issue23310@psf.upfronthosting.co.za> |
2015-04-13 15:39:41 | kjachim | link | issue23310 messages |
2015-04-13 15:39:41 | kjachim | create | |
|