def __init__(self, nodeid, is_mtd=False): if sys.platform != 'win32': self.interface = node_cli.otCli(nodeid, is_mtd) else: self.interface = node_api.otApi(nodeid) self.interface.clear_whitelist() self.interface.disable_whitelist() self.interface.set_timeout(100)
def __init__(self, nodeid): if sys.platform != 'win32': self.interface = node_cli.otCli(nodeid) else: self.interface = node_api.otApi(nodeid) self.interface.clear_whitelist() self.interface.disable_whitelist() self.interface.set_timeout(100)
def __init__(self, nodeid, is_mtd=False, simulator=None): self.simulator = simulator if sys.platform != 'win32': self.interface = node_cli.otCli(nodeid, is_mtd, simulator=simulator) else: self.interface = node_api.otApi(nodeid) self.interface.clear_whitelist() self.interface.disable_whitelist() self.interface.set_timeout(100)
def setUp(self): self.simulator = config.create_default_simulator() self.node_cli = node_cli.otCli(1, False, simulator=self.simulator)