58
59
env_file.write(contents)
60
61
return env_file.name
64
class CallTestsMixin(object):
65
"""Easily use the quickstart.utils.call function."""
67
def patch_call(self, retcode, output='', error=''):
68
"""Patch the quickstart.utils.call function."""
69
mock_call = mock.Mock(return_value=(retcode, output, error))
70
return mock.patch('quickstart.utils.call', mock_call)