Message240626
| 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") |
|