How to use docs method in pandera

Best Python code snippet using pandera_python

DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB.py

Source:DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB.py Github

copy

Full Screen

1#2# PySNMP MIB module DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB (http://snmplabs.com/pysmi)3# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB4# Produced by pysmi-0.3.4 at Mon Apr 29 18:37:56 20195# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang46# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) 7#8ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")9NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")10ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection")11docsDevEvId, docsDevServerDhcp, docsDevSwFilename, docsDevServerTime, docsDevEvText, docsDevSwServer, docsDevEvLevel = mibBuilder.importSymbols("DOCS-CABLE-DEVICE-MIB", "docsDevEvId", "docsDevServerDhcp", "docsDevSwFilename", "docsDevServerTime", "docsDevEvText", "docsDevSwServer", "docsDevEvLevel")12docsIfDocsisBaseCapability, docsIfCmtsCmStatusModulationType, docsIfCmCmtsAddress, docsIfCmStatusModulationType, docsIfCmtsCmStatusMacAddress, docsIfCmtsCmStatusDocsisRegMode, docsIfCmStatusDocsisOperMode = mibBuilder.importSymbols("DOCS-IF-MIB", "docsIfDocsisBaseCapability", "docsIfCmtsCmStatusModulationType", "docsIfCmCmtsAddress", "docsIfCmStatusModulationType", "docsIfCmtsCmStatusMacAddress", "docsIfCmtsCmStatusDocsisRegMode", "docsIfCmStatusDocsisOperMode")13ifPhysAddress, = mibBuilder.importSymbols("IF-MIB", "ifPhysAddress")14NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")15IpAddress, NotificationType, ObjectIdentity, Counter64, Bits, MibIdentifier, TimeTicks, mib_2, Gauge32, Integer32, ModuleIdentity, iso, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "NotificationType", "ObjectIdentity", "Counter64", "Bits", "MibIdentifier", "TimeTicks", "mib-2", "Gauge32", "Integer32", "ModuleIdentity", "iso", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32")16TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")17docsDevNotifMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 132))18docsDevNotifMIB.setRevisions(('2006-05-24 00:00',))19if mibBuilder.loadTexts: docsDevNotifMIB.setLastUpdated('200605240000Z')20if mibBuilder.loadTexts: docsDevNotifMIB.setOrganization('IETF IP over Cable Data Network Working Group')21docsDevNotifControl = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 1))22docsDevCmNotifs = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 2, 0))23docsDevCmtsNotifs = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 3, 0))24docsDevCmNotifControl = MibScalar((1, 3, 6, 1, 2, 1, 132, 1, 1), Bits().clone(namedValues=NamedValues(("cmInitTLVUnknownNotif", 0), ("cmDynServReqFailNotif", 1), ("cmDynServRspFailNotif", 2), ("cmDynServAckFailNotif", 3), ("cmBpiInitNotif", 4), ("cmBPKMNotif", 5), ("cmDynamicSANotif", 6), ("cmDHCPFailNotif", 7), ("cmSwUpgradeInitNotif", 8), ("cmSwUpgradeFailNotif", 9), ("cmSwUpgradeSuccessNotif", 10), ("cmSwUpgradeCVCNotif", 11), ("cmTODFailNotif", 12), ("cmDCCReqFailNotif", 13), ("cmDCCRspFailNotif", 14), ("cmDCCAckFailNotif", 15)))).setMaxAccess("readwrite")25if mibBuilder.loadTexts: docsDevCmNotifControl.setStatus('current')26docsDevCmtsNotifControl = MibScalar((1, 3, 6, 1, 2, 1, 132, 1, 2), Bits().clone(namedValues=NamedValues(("cmtsInitRegReqFailNotif", 0), ("cmtsInitRegRspFailNotif", 1), ("cmtsInitRegAckFailNotif", 2), ("cmtsDynServReqFailNotif", 3), ("cmtsDynServRspFailNotif", 4), ("cmtsDynServAckFailNotif", 5), ("cmtsBpiInitNotif", 6), ("cmtsBPKMNotif", 7), ("cmtsDynamicSANotif", 8), ("cmtsDCCReqFailNotif", 9), ("cmtsDCCRspFailNotif", 10), ("cmtsDCCAckFailNotif", 11)))).setMaxAccess("readwrite")27if mibBuilder.loadTexts: docsDevCmtsNotifControl.setStatus('current')28docsDevCmInitTLVUnknownNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 1)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))29if mibBuilder.loadTexts: docsDevCmInitTLVUnknownNotif.setStatus('current')30docsDevCmDynServReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 2)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))31if mibBuilder.loadTexts: docsDevCmDynServReqFailNotif.setStatus('current')32docsDevCmDynServRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 3)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))33if mibBuilder.loadTexts: docsDevCmDynServRspFailNotif.setStatus('current')34docsDevCmDynServAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 4)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))35if mibBuilder.loadTexts: docsDevCmDynServAckFailNotif.setStatus('current')36docsDevCmBpiInitNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 5)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))37if mibBuilder.loadTexts: docsDevCmBpiInitNotif.setStatus('current')38docsDevCmBPKMNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 6)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))39if mibBuilder.loadTexts: docsDevCmBPKMNotif.setStatus('current')40docsDevCmDynamicSANotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 7)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))41if mibBuilder.loadTexts: docsDevCmDynamicSANotif.setStatus('current')42docsDevCmDHCPFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 8)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-CABLE-DEVICE-MIB", "docsDevServerDhcp"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))43if mibBuilder.loadTexts: docsDevCmDHCPFailNotif.setStatus('current')44docsDevCmSwUpgradeInitNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 9)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwFilename"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwServer"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))45if mibBuilder.loadTexts: docsDevCmSwUpgradeInitNotif.setStatus('current')46docsDevCmSwUpgradeFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 10)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwFilename"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwServer"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))47if mibBuilder.loadTexts: docsDevCmSwUpgradeFailNotif.setStatus('current')48docsDevCmSwUpgradeSuccessNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 11)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwFilename"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwServer"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))49if mibBuilder.loadTexts: docsDevCmSwUpgradeSuccessNotif.setStatus('current')50docsDevCmSwUpgradeCVCFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 12)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))51if mibBuilder.loadTexts: docsDevCmSwUpgradeCVCFailNotif.setStatus('current')52docsDevCmTODFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 13)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-CABLE-DEVICE-MIB", "docsDevServerTime"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))53if mibBuilder.loadTexts: docsDevCmTODFailNotif.setStatus('current')54docsDevCmDCCReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 14)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))55if mibBuilder.loadTexts: docsDevCmDCCReqFailNotif.setStatus('current')56docsDevCmDCCRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 15)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))57if mibBuilder.loadTexts: docsDevCmDCCRspFailNotif.setStatus('current')58docsDevCmDCCAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 2, 0, 16)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmStatusDocsisOperMode"), ("DOCS-IF-MIB", "docsIfCmStatusModulationType"))59if mibBuilder.loadTexts: docsDevCmDCCAckFailNotif.setStatus('current')60docsDevCmtsInitRegReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 1)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))61if mibBuilder.loadTexts: docsDevCmtsInitRegReqFailNotif.setStatus('current')62docsDevCmtsInitRegRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 2)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))63if mibBuilder.loadTexts: docsDevCmtsInitRegRspFailNotif.setStatus('current')64docsDevCmtsInitRegAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 3)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))65if mibBuilder.loadTexts: docsDevCmtsInitRegAckFailNotif.setStatus('current')66docsDevCmtsDynServReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 4)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))67if mibBuilder.loadTexts: docsDevCmtsDynServReqFailNotif.setStatus('current')68docsDevCmtsDynServRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 5)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))69if mibBuilder.loadTexts: docsDevCmtsDynServRspFailNotif.setStatus('current')70docsDevCmtsDynServAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 6)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))71if mibBuilder.loadTexts: docsDevCmtsDynServAckFailNotif.setStatus('current')72docsDevCmtsBpiInitNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 7)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))73if mibBuilder.loadTexts: docsDevCmtsBpiInitNotif.setStatus('current')74docsDevCmtsBPKMNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 8)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))75if mibBuilder.loadTexts: docsDevCmtsBPKMNotif.setStatus('current')76docsDevCmtsDynamicSANotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 9)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))77if mibBuilder.loadTexts: docsDevCmtsDynamicSANotif.setStatus('current')78docsDevCmtsDCCReqFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 10)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))79if mibBuilder.loadTexts: docsDevCmtsDCCReqFailNotif.setStatus('current')80docsDevCmtsDCCRspFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 11)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))81if mibBuilder.loadTexts: docsDevCmtsDCCRspFailNotif.setStatus('current')82docsDevCmtsDCCAckFailNotif = NotificationType((1, 3, 6, 1, 2, 1, 132, 3, 0, 12)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfDocsisBaseCapability"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusModulationType"))83if mibBuilder.loadTexts: docsDevCmtsDCCAckFailNotif.setStatus('current')84docsDevNotifConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 4))85docsDevNotifGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 4, 1))86docsDevNotifCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 132, 4, 2))87docsDevCmNotifCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 132, 4, 2, 1)).setObjects(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmNotifControlGroup"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmNotificationGroup"))88if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):89 docsDevCmNotifCompliance = docsDevCmNotifCompliance.setStatus('current')90docsDevCmNotifControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 1)).setObjects(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmNotifControl"))91if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):92 docsDevCmNotifControlGroup = docsDevCmNotifControlGroup.setStatus('current')93docsDevCmNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 2)).setObjects(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmInitTLVUnknownNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynServReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynServRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynServAckFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmBpiInitNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmBPKMNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDynamicSANotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDHCPFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeInitNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeSuccessNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmSwUpgradeCVCFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmTODFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDCCReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDCCRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmDCCAckFailNotif"))94if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):95 docsDevCmNotificationGroup = docsDevCmNotificationGroup.setStatus('current')96docsDevCmtsNotifCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 132, 4, 2, 2)).setObjects(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsNotifControlGroup"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsNotificationGroup"))97if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):98 docsDevCmtsNotifCompliance = docsDevCmtsNotifCompliance.setStatus('current')99docsDevCmtsNotifControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 3)).setObjects(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsNotifControl"))100if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):101 docsDevCmtsNotifControlGroup = docsDevCmtsNotifControlGroup.setStatus('current')102docsDevCmtsNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 132, 4, 1, 4)).setObjects(("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsInitRegReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsInitRegRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsInitRegAckFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynServReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynServRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynServAckFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsBpiInitNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsBPKMNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDynamicSANotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDCCReqFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDCCRspFailNotif"), ("DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB", "docsDevCmtsDCCAckFailNotif"))103if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):104 docsDevCmtsNotificationGroup = docsDevCmtsNotificationGroup.setStatus('current')...

Full Screen

Full Screen

DOCS-CABLE-DEVICE-TRAP-MIB.py

Source:DOCS-CABLE-DEVICE-TRAP-MIB.py Github

copy

Full Screen

1#2# PySNMP MIB module DOCS-CABLE-DEVICE-TRAP-MIB (http://snmplabs.com/pysmi)3# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DOCS-CABLE-DEVICE-TRAP-MIB4# Produced by pysmi-0.3.4 at Mon Apr 29 18:37:45 20195# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang46# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) 7#8Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")9NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")10ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion")11docsDevEvId, docsDevEvLevel, docsDevSwFilename, docsDevNotification, docsDev, docsDevServerTime, docsDevSwServer, docsDevServerDhcp, docsDevEvText = mibBuilder.importSymbols("DOCS-CABLE-DEVICE-MIB", "docsDevEvId", "docsDevEvLevel", "docsDevSwFilename", "docsDevNotification", "docsDev", "docsDevServerTime", "docsDevSwServer", "docsDevServerDhcp", "docsDevEvText")12docsIfCmtsCmStatusDocsisMode, docsIfDocsisOperMode, docsIfDocsisCapability = mibBuilder.importSymbols("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode", "docsIfDocsisOperMode", "docsIfDocsisCapability")13docsIfCmtsCmStatusMacAddress, docsIfCmCmtsAddress = mibBuilder.importSymbols("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress", "docsIfCmCmtsAddress")14ifPhysAddress, = mibBuilder.importSymbols("IF-MIB", "ifPhysAddress")15NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")16Unsigned32, MibIdentifier, ModuleIdentity, Counter64, NotificationType, Counter32, ObjectIdentity, IpAddress, Bits, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Integer32, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "MibIdentifier", "ModuleIdentity", "Counter64", "NotificationType", "Counter32", "ObjectIdentity", "IpAddress", "Bits", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Integer32", "Gauge32")17DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")18docsDevTrapMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 69, 10))19if mibBuilder.loadTexts: docsDevTrapMIB.setLastUpdated('000926000000Z')20if mibBuilder.loadTexts: docsDevTrapMIB.setOrganization('Cisco Systems, Inc.')21docsDevTraps = MibIdentifier((1, 3, 6, 1, 2, 1, 69, 2, 1))22docsDevTrapControl = MibIdentifier((1, 3, 6, 1, 2, 1, 69, 2, 1, 1))23docsDevCmTraps = MibIdentifier((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0))24docsDevCmtsTraps = MibIdentifier((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0))25docsDevCmTrapControl = MibScalar((1, 3, 6, 1, 2, 1, 69, 2, 1, 1, 1), Bits().clone(namedValues=NamedValues(("cmInitTLVUnknownTrap", 0), ("cmDynServReqFailTrap", 1), ("cmDynServRspFailTrap", 2), ("cmDynServAckFailTrap", 3), ("cmBpiInitTrap", 4), ("cmBPKMTrap", 5), ("cmDynamicSATrap", 6), ("cmDHCPFailTrap", 7), ("cmSwUpgradeInitTrap", 8), ("cmSwUpgradeFailTrap", 9), ("cmSwUpgradeSuccessTrap", 10), ("cmSwUpgradeCVCTrap", 11), ("cmTODFailTrap", 12), ("cmDCCReqFailTrap", 13), ("cmDCCRspFailTrap", 14), ("cmDCCAckFailTrap", 15)))).setMaxAccess("readwrite")26if mibBuilder.loadTexts: docsDevCmTrapControl.setStatus('current')27docsDevCmtsTrapControl = MibScalar((1, 3, 6, 1, 2, 1, 69, 2, 1, 1, 2), Bits().clone(namedValues=NamedValues(("cmtsInitRegReqFailTrap", 0), ("cmtsInitRegRspFailTrap", 1), ("cmtsInitRegAckFailTrap", 2), ("cmtsDynServReqFailTrap", 3), ("cmtsDynServRspFailTrap", 4), ("cmtsDynServAckFailTrap", 5), ("cmtsBpiInitTrap", 6), ("cmtsBPKMTrap", 7), ("cmtsDynamicSATrap", 8), ("cmtsDCCReqFailTrap", 9), ("cmtsDCCRspFailTrap", 10), ("cmtsDCCAckFailTrap", 11)))).setMaxAccess("readwrite")28if mibBuilder.loadTexts: docsDevCmtsTrapControl.setStatus('current')29docsDevCmInitTLVUnknownTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 1)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))30if mibBuilder.loadTexts: docsDevCmInitTLVUnknownTrap.setStatus('current')31docsDevCmDynServReqFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 2)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))32if mibBuilder.loadTexts: docsDevCmDynServReqFailTrap.setStatus('current')33docsDevCmDynServRspFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 3)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))34if mibBuilder.loadTexts: docsDevCmDynServRspFailTrap.setStatus('current')35docsDevCmDynServAckFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 4)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))36if mibBuilder.loadTexts: docsDevCmDynServAckFailTrap.setStatus('current')37docsDevCmBpiInitTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 5)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))38if mibBuilder.loadTexts: docsDevCmBpiInitTrap.setStatus('current')39docsDevCmBPKMTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 6)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))40if mibBuilder.loadTexts: docsDevCmBPKMTrap.setStatus('current')41docsDevCmDynamicSATrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 7)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))42if mibBuilder.loadTexts: docsDevCmDynamicSATrap.setStatus('current')43docsDevCmDHCPFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 8)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-CABLE-DEVICE-MIB", "docsDevServerDhcp"))44if mibBuilder.loadTexts: docsDevCmDHCPFailTrap.setStatus('current')45docsDevCmSwUpgradeInitTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 9)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwFilename"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwServer"))46if mibBuilder.loadTexts: docsDevCmSwUpgradeInitTrap.setStatus('current')47docsDevCmSwUpgradeFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 10)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwFilename"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwServer"))48if mibBuilder.loadTexts: docsDevCmSwUpgradeFailTrap.setStatus('current')49docsDevCmSwUpgradeSuccessTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 11)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwFilename"), ("DOCS-CABLE-DEVICE-MIB", "docsDevSwServer"))50if mibBuilder.loadTexts: docsDevCmSwUpgradeSuccessTrap.setStatus('current')51docsDevCmSwUpgradeCVCFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 12)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))52if mibBuilder.loadTexts: docsDevCmSwUpgradeCVCFailTrap.setStatus('current')53docsDevCmTODFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 13)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"), ("DOCS-CABLE-DEVICE-MIB", "docsDevServerTime"))54if mibBuilder.loadTexts: docsDevCmTODFailTrap.setStatus('current')55docsDevCmDCCReqFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 14)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))56if mibBuilder.loadTexts: docsDevCmDCCReqFailTrap.setStatus('current')57docsDevCmDCCRspFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 15)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))58if mibBuilder.loadTexts: docsDevCmDCCRspFailTrap.setStatus('current')59docsDevCmDCCAckFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 0, 16)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("DOCS-IF-EXT-MIB", "docsIfDocsisOperMode"), ("IF-MIB", "ifPhysAddress"), ("DOCS-IF-MIB", "docsIfCmCmtsAddress"))60if mibBuilder.loadTexts: docsDevCmDCCAckFailTrap.setStatus('current')61docsDevCmtsInitRegReqFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 1)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))62if mibBuilder.loadTexts: docsDevCmtsInitRegReqFailTrap.setStatus('current')63docsDevCmtsInitRegRspFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 2)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))64if mibBuilder.loadTexts: docsDevCmtsInitRegRspFailTrap.setStatus('current')65docsDevCmtsInitRegAckFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 3)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))66if mibBuilder.loadTexts: docsDevCmtsInitRegAckFailTrap.setStatus('current')67docsDevCmtsDynServReqFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 4)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))68if mibBuilder.loadTexts: docsDevCmtsDynServReqFailTrap.setStatus('current')69docsDevCmtsDynServRspFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 5)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))70if mibBuilder.loadTexts: docsDevCmtsDynServRspFailTrap.setStatus('current')71docsDevCmtsDynServAckFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 6)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))72if mibBuilder.loadTexts: docsDevCmtsDynServAckFailTrap.setStatus('current')73docsDevCmtsBpiInitTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 7)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))74if mibBuilder.loadTexts: docsDevCmtsBpiInitTrap.setStatus('current')75docsDevCmtsBPKMTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 8)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))76if mibBuilder.loadTexts: docsDevCmtsBPKMTrap.setStatus('current')77docsDevCmtsDynamicSATrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 9)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))78if mibBuilder.loadTexts: docsDevCmtsDynamicSATrap.setStatus('current')79docsDevCmtsDCCReqFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 10)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))80if mibBuilder.loadTexts: docsDevCmtsDCCReqFailTrap.setStatus('current')81docsDevCmtsDCCRspFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 11)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))82if mibBuilder.loadTexts: docsDevCmtsDCCRspFailTrap.setStatus('current')83docsDevCmtsDCCAckFailTrap = NotificationType((1, 3, 6, 1, 2, 1, 69, 2, 1, 3, 0, 12)).setObjects(("DOCS-CABLE-DEVICE-MIB", "docsDevEvLevel"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvId"), ("DOCS-CABLE-DEVICE-MIB", "docsDevEvText"), ("DOCS-IF-EXT-MIB", "docsIfCmtsCmStatusDocsisMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-EXT-MIB", "docsIfDocsisCapability"), ("IF-MIB", "ifPhysAddress"))84if mibBuilder.loadTexts: docsDevCmtsDCCAckFailTrap.setStatus('current')85docsDevTrapConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 69, 2, 1, 2))86docsDevTrapGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 1))87docsDevTrapCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 2))88docsDevCmTrapCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 2, 1)).setObjects(("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmTrapControlGroup"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmNotificationGroup"))89if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):90 docsDevCmTrapCompliance = docsDevCmTrapCompliance.setStatus('current')91docsDevCmTrapControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 1, 1)).setObjects(("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmTrapControl"))92if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):93 docsDevCmTrapControlGroup = docsDevCmTrapControlGroup.setStatus('current')94docsDevCmNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 1, 2)).setObjects(("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmInitTLVUnknownTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmDynServReqFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmDynServRspFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmDynServAckFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmBpiInitTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmBPKMTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmDynamicSATrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmDHCPFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmSwUpgradeInitTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmSwUpgradeFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmSwUpgradeSuccessTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmSwUpgradeCVCFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmTODFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmDCCReqFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmDCCRspFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmDCCAckFailTrap"))95if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):96 docsDevCmNotificationGroup = docsDevCmNotificationGroup.setStatus('current')97docsDevCmtsTrapCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 2, 2)).setObjects(("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsTrapControlGroup"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsNotificationGroup"))98if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):99 docsDevCmtsTrapCompliance = docsDevCmtsTrapCompliance.setStatus('current')100docsDevCmtsTrapControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 1, 3)).setObjects(("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsTrapControl"))101if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):102 docsDevCmtsTrapControlGroup = docsDevCmtsTrapControlGroup.setStatus('current')103docsDevCmtsNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 69, 2, 1, 2, 1, 4)).setObjects(("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsInitRegReqFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsInitRegRspFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsInitRegAckFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsDynServReqFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsDynServRspFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsDynServAckFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsBpiInitTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsBPKMTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsDynamicSATrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsDCCReqFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsDCCRspFailTrap"), ("DOCS-CABLE-DEVICE-TRAP-MIB", "docsDevCmtsDCCAckFailTrap"))104if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):105 docsDevCmtsNotificationGroup = docsDevCmtsNotificationGroup.setStatus('current')...

Full Screen

Full Screen

test_docs.py

Source:test_docs.py Github

copy

Full Screen

...135 self.assertTrue(d.get_input_style() == 'groups')136 def testSameOutputJavadocReST(self):137 doc = mydocs138 dj = docs.DocString(myelem, ' ')139 dj.parse_docs(doc)140 doc = torest(mydocs)141 dr = docs.DocString(myelem, ' ')142 dr.parse_docs(doc)143 self.assertEqual(dj.get_raw_docs(), dr.get_raw_docs())144 def testParsingElement(self):145 d = docs.DocString(myelem, ' ')146 self.assertTrue(d.element['deftype'] == 'def')147 self.assertTrue(d.element['name'] == 'my_method')148 self.assertTrue(len(d.element['params']) == 3)149 self.assertTrue(type(d.element['params'][0]['param']) is str)150 self.assertTrue((d.element['params'][2]['param'], d.element['params'][2]['default']) == ('third', '"value"'))151 def testIfParsedDocs(self):152 doc = mydocs153 # nothing to parse154 d = docs.DocString(myelem, ' ')155 d.parse_docs()156 self.assertFalse(d.parsed_docs)157 # parse docstring given at init158 d = docs.DocString(myelem, ' ', doc)159 d.parse_docs()160 self.assertTrue(d.parsed_docs)161 # parse docstring given in parsing method162 d = docs.DocString(myelem, ' ')163 d.parse_docs(doc)164 self.assertTrue(d.parsed_docs)165 def testParsingDocsDesc(self):166 doc = mydocs167 d = docs.DocString(myelem, ' ', doc)168 d.parse_docs()169 self.assertTrue(d.docs['in']['desc'].strip().startswith('This '))170 self.assertTrue(d.docs['in']['desc'].strip().endswith('style.'))171 def testParsingGroupsDocsDesc(self):172 doc = mygrpdocs173 d = docs.DocString(myelem, ' ', doc)174 d.parse_docs()175 self.assertTrue(d.docs['in']['desc'].strip().startswith('My '))176 self.assertTrue(d.docs['in']['desc'].strip().endswith('lines.'))177 178 def testParsingNumpyDocsDesc(self):179 doc = mynumpydocs180 d = docs.DocString(myelem, ' ', doc)181 d.parse_docs()182 self.assertTrue(d.docs['in']['desc'].strip().startswith('My numpydoc'))183 self.assertTrue(d.docs['in']['desc'].strip().endswith('format docstring.'))184 def testParsingGoogleDocsDesc(self):185 doc = googledocs186 d = docs.DocString(myelem, ' ', doc)187 d.parse_docs()188 self.assertTrue(d.docs['in']['desc'].strip().startswith('This is a Google style docs.'))189 def testParsingDocsParams(self):190 doc = torest(mydocs)191 d = docs.DocString(myelem, ' ', doc)192 d.parse_docs()193 self.assertTrue(len(d.docs['in']['params']) == 2)194 self.assertTrue(type(d.docs['in']['params'][1]) is tuple)195 # param's name196 self.assertTrue(d.docs['in']['params'][1][0] == 'second')197 # param's type198 self.assertTrue(d.docs['in']['params'][0][2] == 'str')199 self.assertFalse(d.docs['in']['params'][1][2])200 # param's description201 self.assertTrue(d.docs['in']['params'][0][1].startswith("the 1"))202 def testParsingGoogleDocsParams(self):203 doc = googledocs204 d = docs.DocString(myelem, ' ', doc)205 d.parse_docs()206 self.assertTrue(len(d.docs['in']['params']) == 3)207 self.assertTrue(d.docs['in']['params'][0][0] == 'first')208 self.assertTrue(d.docs['in']['params'][0][2] == 'str')209 self.assertTrue(d.docs['in']['params'][0][1].startswith('this is the first'))210 self.assertFalse(d.docs['in']['params'][1][2])211 self.assertTrue(d.docs['in']['params'][2][1].startswith('this is a third'))212 self.assertTrue(d.docs['in']['params'][2][2] == 'str')213 def testParsingGroupsDocsParams(self):214 doc = mygrpdocs215 d = docs.DocString(myelem, ' ', doc)216 d.parse_docs()217 self.assertTrue(len(d.docs['in']['params']) == 3)218 self.assertTrue(d.docs['in']['params'][0][0] == 'first')219 self.assertTrue(d.docs['in']['params'][0][1].startswith('the 1'))220 self.assertTrue(d.docs['in']['params'][2][1].startswith('the 3rd'))221 def testParsingGroups2DocsParams(self):222 doc = mygrpdocs2223 d = docs.DocString(myelem, ' ', doc)224 d.parse_docs()225 self.assertTrue(len(d.docs['in']['params']) == 3)226 self.assertTrue(d.docs['in']['params'][0][0] == 'first')227 self.assertTrue(d.docs['in']['params'][0][1].startswith('the 1'))228 self.assertTrue(d.docs['in']['params'][2][1].startswith('the 3rd'))229 def testParsingNumpyDocsParams(self):230 doc = mynumpydocs231 d = docs.DocString(myelem, ' ', doc)232 d.parse_docs()233 self.assertTrue(len(d.docs['in']['params']) == 3)234 self.assertTrue(d.docs['in']['params'][0][0] == 'first')235 self.assertTrue(d.docs['in']['params'][0][2] == 'array_like')236 self.assertTrue(d.docs['in']['params'][0][1].strip().startswith('the 1'))237 self.assertFalse(d.docs['in']['params'][1][2])238 self.assertTrue(d.docs['in']['params'][2][1].strip().endswith("default 'value'"))239 def testParsingDocsRaises(self):240 doc = mydocs241 d = docs.DocString(myelem, ' ', doc)242 d.parse_docs()243 d.generate_docs()244 self.assertTrue(len(d.docs['in']['raises']) == 2)245 self.assertTrue(d.docs['in']['raises'][0][0].startswith('KeyError'))246 self.assertTrue(d.docs['in']['raises'][0][1].startswith('raises a key'))247 self.assertTrue(d.docs['in']['raises'][1][0].startswith('OtherError'))248 self.assertTrue(d.docs['in']['raises'][1][1].startswith('raises an other'))249 def testParsingGoogleDocsRaises(self):250 doc = googledocs251 d = docs.DocString(myelem, ' ', doc)252 d.parse_docs()253 self.assertTrue(len(d.docs['in']['raises']) == 2)254 self.assertTrue(d.docs['in']['raises'][0][0] == 'KeyError')255 self.assertTrue(d.docs['in']['raises'][0][1].startswith('raises an'))256 self.assertTrue(d.docs['in']['raises'][1][0] == 'OtherError')257 self.assertTrue(d.docs['in']['raises'][1][1].startswith('when an other'))258 def testParsingGroupsDocsRaises(self):259 doc = mygrpdocs260 d = docs.DocString(myelem, ' ', doc)261 d.parse_docs()262 self.assertTrue(len(d.docs['in']['raises']) == 2)263 self.assertTrue(d.docs['in']['raises'][0][0] == 'KeyError')264 self.assertTrue(d.docs['in']['raises'][0][1].startswith('when a key'))265 self.assertTrue(d.docs['in']['raises'][1][0] == 'OtherError')266 self.assertTrue(d.docs['in']['raises'][1][1].startswith('when an other'))267 def testParsingGroups2DocsRaises(self):268 doc = mygrpdocs2269 d = docs.DocString(myelem, ' ', doc)270 d.parse_docs()271 self.assertTrue(len(d.docs['in']['raises']) == 2)272 self.assertTrue(d.docs['in']['raises'][0][0] == 'KeyError')273 self.assertTrue(d.docs['in']['raises'][0][1].startswith('when a key'))274 self.assertTrue(d.docs['in']['raises'][1][0] == 'OtherError')275 self.assertTrue(d.docs['in']['raises'][1][1].startswith('when an other'))276 def testParsingNumpyDocsRaises(self):277 doc = mynumpydocs278 d = docs.DocString(myelem, ' ', doc)279 d.parse_docs()280 self.assertTrue(len(d.docs['in']['raises']) == 2)281 self.assertTrue(d.docs['in']['raises'][0][0] == 'KeyError')282 self.assertTrue(d.docs['in']['raises'][0][1].strip().startswith('when a key'))283 self.assertTrue(d.docs['in']['raises'][1][0] == 'OtherError')284 self.assertTrue(d.docs['in']['raises'][1][1].strip().startswith('when an other'))285 def testParsingDocsReturn(self):286 doc = mydocs287 d = docs.DocString(myelem, ' ', doc)288 d.parse_docs()289 self.assertTrue(d.docs['in']['return'].startswith('the result'))290 self.assertTrue(d.docs['in']['rtype'] == 'int')291 def testParsingGroupsDocsReturn(self):292 doc = mygrpdocs293 d = docs.DocString(myelem, ' ', doc)294 d.parse_docs()295 self.assertTrue(d.docs['in']['return'] == 'a value in a string')296 def testParsingGoogleDocsReturn(self):297 doc = googledocs298 d = docs.DocString(myelem, ' ', doc)299 d.parse_docs()300 self.assertTrue(d.docs['in']['return'][0][1] == 'This is a description of what is returned')301 def testParsingNumpyDocsReturn(self):302 doc = mynumpydocs303 d = docs.DocString(myelem, ' ', doc)304 d.parse_docs()305 self.assertTrue(d.docs['in']['return'][0][1] == 'a value in a string')306 d.set_output_style('numpydoc')307 def testGeneratingDocsDesc(self):308 doc = mydocs309 d = docs.DocString(myelem, ' ', doc)310 d.parse_docs()311 d.generate_docs()312 self.assertTrue(d.docs['out']['desc'] == d.docs['in']['desc'])313 def testGeneratingDocsReturn(self):314 doc = mydocs315 d = docs.DocString(myelem, ' ', doc)316 d.parse_docs()317 d.generate_docs()318 self.assertTrue(d.docs['out']['return'].startswith('the result'))319 self.assertTrue(d.docs['out']['rtype'] == 'int')320 def testGeneratingDocsRaise(self):321 doc = mydocs322 d = docs.DocString(myelem, ' ', doc)323 d.parse_docs()324 d.generate_docs()325 self.assertTrue(len(d.docs['out']['raises']) == 2)326 self.assertTrue(d.docs['out']['raises'][0][0].startswith('KeyError'))327 self.assertTrue(d.docs['out']['raises'][0][1].startswith('raises a key'))328 self.assertTrue(d.docs['out']['raises'][1][0].startswith('OtherError'))329 self.assertTrue(d.docs['out']['raises'][1][1].startswith('raises an other'))330 def testGeneratingDocsParams(self):331 doc = mydocs332 d = docs.DocString(myelem, ' ', doc)333 d.parse_docs()334 d.generate_docs()335 self.assertTrue(len(d.docs['out']['params']) == 3)336 self.assertTrue(type(d.docs['out']['params'][2]) is tuple)337 self.assertTrue(d.docs['out']['params'][2] == ('third', '', None, '"value"'))338 # param's description339 self.assertTrue(d.docs['out']['params'][1][1].startswith("the 2"))340 def testGeneratingDocsParamsTypeStubs(self):341 doc = mydocs342 d = docs.DocString(myelem, ' ', doc, type_stub=True)343 d.parse_docs()344 d.generate_docs()345 self.assertTrue(':type second: ' in d.docs['out']['raw'])346 self.assertTrue(':type third: ' in d.docs['out']['raw'])347 def testGeneratingGoogleDocsParamsTypeStubs(self):348 doc = googledocs349 d = docs.DocString(myelem, ' ', doc, type_stub=True)350 d.parse_docs()351 d.generate_docs()352 self.assertTrue(':type second: ' in d.docs['out']['raw'])353 def testGeneratingGroupsDocsParamsTypeStubs(self):354 doc = mygrpdocs355 d = docs.DocString(myelem, ' ', doc, type_stub=True)356 d.parse_docs()357 d.generate_docs()358 self.assertTrue(':type first: ' in d.docs['out']['raw'])359 self.assertTrue(':type second: ' in d.docs['out']['raw'])360 self.assertTrue(':type third: ' in d.docs['out']['raw'])361 def testGeneratingGroups2DocsParamsTypeStubs(self):362 doc = mygrpdocs2363 d = docs.DocString(myelem, ' ', doc, type_stub=True)364 d.parse_docs()365 d.generate_docs()366 self.assertTrue(':type first: ' in d.docs['out']['raw'])367 self.assertTrue(':type second: ' in d.docs['out']['raw'])368 self.assertTrue(':type third: ' in d.docs['out']['raw'])369 def testGeneratingNumpyDocsParamsTypeStubs(self):370 doc = mynumpydocs371 d = docs.DocString(myelem, ' ', doc, type_stub=True)372 d.parse_docs()373 d.generate_docs()374 self.assertTrue(':type second: ' in d.docs['out']['raw'])375 def testNoParam(self):376 elem = " def noparam():"377 doc = """ '''the no param docstring378 '''"""379 d = docs.DocString(elem, ' ', doc, input_style='javadoc')380 d.parse_docs()381 d.generate_docs()382 self.assertFalse(d.docs['out']['params'])383 def testOneLineDocs(self):384 elem = " def oneline(self):"385 doc = """ '''the one line docstring386 '''"""387 d = docs.DocString(elem, ' ', doc, input_style='javadoc')388 d.parse_docs()389 d.generate_docs()390 #print(d.docs['out']['raw'])391 self.assertFalse(d.docs['out']['raw'].count('\n'))392def main():393 unittest.main()394if __name__ == '__main__':...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run pandera automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful