示例1: function_call ▲ # 需要导入模块: from expect import Expect [as 别名]# 或者: from expect.Expect importfunction_call[as 别名]deffunction_call(self, function, args=None, kwds=None):""" EXAMPLES: sage: lie.function_call("diagram", args=['A4']) # optional - lie O---O---O--...
From what I can tell (by reading the documentation), this may be a design issue. If I use ON_CALL to create a default action and use an EXPECT_CALL for different tests, the EXPECT_CALL will generate an unexpected mock function call if th...
Describe the bug When an EXPECT_CALL is given with .Times(1), sometimes the test results show as green and the console has the following printed: pure virtual method called terminate called without an active exception An example of this ...
os.link(logfile, buildlog)exceptException:passmavproxy.expect('Received [0-9]+ parameters') util.expect_setup_callback(mavproxy, expect_callback) expect_list_clear() expect_list_extend([sitl, mavproxy]) print("Started simulator")# get a mavlink connection goingtry: mav = mavutil.mavlink_conn...