def METHOD_NAME(self):
    dce, rpctransport = self.connect()
    request = rprn.RpcOpenPrinter()
    request['pPrinterName'] = "\\\\%s\x00" % self.machine
    request['pDatatype'] = NULL
    request['pDevModeContainer']['pDevMode'] = NULL
    request['AccessRequired'] = rprn.SERVER_READ | rprn.SERVER_ALL_ACCESS | rprn.SERVER_ACCESS_ADMINISTER
    request.dump()
    resp = dce.request(request)
    resp.dump()
    request = rprn.RpcRemoteFindFirstPrinterChangeNotificationEx()
    request['hPrinter'] = resp['pHandle']
    request['fdwFlags'] = rprn.PRINTER_CHANGE_ADD_JOB
    request['pszLocalMachine'] = "\\\\%s\x00" % self.machine
    request['pOptions'] = NULL
    request.dump()
    with assertRaisesRegex(self, rprn.DCERPCSessionError, "ERROR_INVALID_HANDLE"):
        dce.request(request)