示例#1
0
 def testNestedDn():
     (getParentDn('uni/epp/fv-[uni/tn-infra/ap-access/epg-default]').should.
      equal('uni/epp'))
示例#2
0
 def testNamedThirdLevel():
     getParentDn('uni/tn-common/BD-lab').should.equal('uni/tn-common')
示例#3
0
 def testNoNamedThirdLevel():
     getParentDn('uni/infra/funcprof').should.equal('uni/infra')
示例#4
0
 def testNoNamedSecondLevel():
     getParentDn('uni/infra').should.equal('uni')
示例#5
0
 def testNoNamedTopLevel():
     getParentDn('uni').should.equal('')
示例#6
0
 def testEmptyDn():
     getParentDn('').should.equal('')