def test_1_thing(self, mock_thing): obj = Foo() # BEGIN # END self.assertEqual(obj.thing(), 'xyzzy')
def test_1_thing(self, mock_thing): obj = Foo() # BEGIN mock_thing.return_value = 'xyzzy' # END self.assertEqual(obj.thing(), 'xyzzy')