Here are the examples of the python api mock.Mock.return_value taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
0
Example 1
Project: build-mozharness Source File: test_mozilla_blob_upload.py
def query_python_path(self, binary="python"):
if binary == "blobberc.py":
return mock.Mock(return_value='/path/to/blobberc').return_value
elif binary == "python":
return mock.Mock(return_value='/path/to/python').return_value