def _setUp(self): self.logger = get_test_logger() self.events = EventHandler() self.app = TestApp(event_handler=self.events) self.logger.info('Starting test: %s' % self._testMethodName) self.phy = self.app.load_phy('test') self.device = self.app.load_device(self.__dev_name__, self.phy)
def setUp(self): self.logger = get_test_logger() self.our_class = RemoteServerImpl(self) self.host = '127.0.0.1' self.port = 7001 self.rpc_server = RpcServer(self.host, self.port, self.our_class) self.rpc_server_th = Thread(target=self.rpc_server.start) self.rpc_client = RpcClient(self.host, self.port) self.called_functions = []
def setUp(self, crypt=None): self.logger = get_test_logger() self.logger.debug('TESTING METHOD: %s', self._testMethodName) if crypt is not None: self.crypto = crypt self.crypto.key_size = self.crypto.key_sizes[0]
def setUp(self): self.logger = get_test_logger() self.report_name = 'uut' self.failure_reason = 'failure reason' self.error_reason = 'error reason'