def METHOD_NAME(self):
    self.repl.current_line = "s = s.connect('localhost', 8080)"
    self.repl.cursor_offset = 14
    self.repl.process_event("(")
    self.assertEqual(
        self.repl._current_line, "s = s.connect(('localhost', 8080)"
    )
    self.assertEqual(self.repl._cursor_offset, 15)