def __ensure_no_mitmdump(self): CommandLine.execute( f'kill -9 $(lsof -t -i :{self.port}) > /dev/null 2>&1')
def __start_mitm(self): # import ipdb # ipdb.set_trace(context=5) self.mitm_proc = CommandLine.execute( f'mitmdump -p {self.port} -s test/analytics_logger.py > /dev/null 2>&1 &' )