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