How do I test the following code with unittest.mock
:
def testme(filepath):
with open(filepath) as f:
return f.read()
How do I test the following code with unittest.mock
:
def testme(filepath):
with open(filepath) as f:
return f.read()