def METHOD_NAME(self):
    super().METHOD_NAME()
    del self.opts
    # Set up MagicMock to replace the boto3 session
    # connections keep getting cached from prior tests, can't find the
    # correct context object to clear it. So randomize the cache key, to prevent any
    # cache hits
    self.conn_parameters = {
        "region": self.region,
        "keyid": self.secret_key,
        "profile": {},
    }
    self.conn_parameters["key"] = "".join(
        random.choice(string.ascii_lowercase + string.digits) for _ in range(50)
    )
    self.not_found_error = ClientError(
        {
            "Error": {
                "Code": "ResourceNotFoundException",
                "Message": "Test-defined error",
            }
        },
        "msg",
    )
    self.conn = MagicMock()
    self.addCleanup(delattr, self, "conn")
    self.patcher = patch("boto3.session.Session")
    self.addCleanup(self.patcher.stop)
    self.addCleanup(delattr, self, "patcher")
    mock_session = self.patcher.start()
    session_instance = mock_session.return_value
    session_instance.configure_mock(client=MagicMock(return_value=self.conn))
    self.paginator = MagicMock()
    self.addCleanup(delattr, self, "paginator")
    self.conn.configure_mock(get_paginator=MagicMock(return_value=self.paginator))