def _next_port(self, port):
port = <NUM_LIT> + (port + <NUM_LIT:1>) % <NUM_LIT:1000><EOL>if port == self.port:<EOL><INDENT>raise DatacatsError('<STR_LIT>')<EOL><DEDENT>return port<EOL>
Return another port from the 5000-5999 range