def _verify_hdmi_connection(*args, **kwargs): """ See usage in main method :return: None """ if 'loop' in kwargs.keys(): del kwargs['loop'] device = Device(test_conf['device_id']) device.verify_hdmi_connection(*args, **kwargs)
def initiate_device(): """ Initiate device, like set screen, enable mtp :return: None """ tc_logger.info('==>Start to initiate devices') device = Device(test_conf['device_id']) device.root_device() device.verify_hdmi_connection() device.set_screen() device.switch_mtp(True)