def testNestedDn(): (getParentDn('uni/epp/fv-[uni/tn-infra/ap-access/epg-default]').should. equal('uni/epp'))
def testNamedThirdLevel(): getParentDn('uni/tn-common/BD-lab').should.equal('uni/tn-common')
def testNoNamedThirdLevel(): getParentDn('uni/infra/funcprof').should.equal('uni/infra')
def testNoNamedSecondLevel(): getParentDn('uni/infra').should.equal('uni')
def testNoNamedTopLevel(): getParentDn('uni').should.equal('')
def testEmptyDn(): getParentDn('').should.equal('')