Lines Matching refs:expect_call
78 utils.open.expect_call("filename", "r").and_return(test_file)
130 utils.open.expect_call("filename", "w").and_return(test_file)
169 utils.open.expect_call("filename", "w").and_return(test_file)
189 os.path.exists.expect_call(filename).and_return(True)
190 utils.open.expect_call(filename).and_return(test_file)
194 os.path.isdir.expect_call("file").and_return(False)
202 os.path.isdir.expect_call("file").and_return(False)
203 os.path.exists.expect_call("file").and_return(False)
209 os.path.isdir.expect_call("file").and_return(False)
216 os.path.isdir.expect_call("dir").and_return(True)
300 utils.open.expect_call(expected_filename, "a").and_return(test_file)
301 test_file.close.expect_call()
310 os.path.isdir.expect_call("file").and_return(False)
315 os.path.isdir.expect_call("file").and_return(False)
321 os.path.isdir.expect_call("dir").and_return(True)
464 (utils.urlopen.expect_call(url, data=data, timeout=timeout)
466 utils.open.expect_call(dest, "wb").and_return(dest_file)
467 utils.shutil.copyfileobj.expect_call(src_file, dest_file)
468 dest_file.close.expect_call()
469 src_file.close.expect_call()
1105 utils.CONFIG.get_config_value.expect_call(