Example #1
0
 def test_DnQuery_options(self):
     did = '1234567890'
     expectedOptions = ''
     dq = DnQuery('uni')
     dq.id = did
     expectedOptions += '_dc=' + did
     assert dq.options == expectedOptions
Example #2
0
 def test_DnQuery_options(self):
     did = '1234567890'
     expectedOptions = ''
     dq = DnQuery('uni')
     dq.id = did
     expectedOptions += '_dc=' + did
     assert dq.options == expectedOptions
Example #3
0
 def test_DnQuery_getUrl(self, sessionUrl, dc, requestType):
     session = LoginSession(sessionUrl, 'admin', 'password',
                            requestFormat=requestType)
     dn = 'uni'
     dq = DnQuery('uni')
     expected = sessionUrl + '/api/mo/' + dn + '.' + requestType
     dq.id = dc
     expected += '?_dc=' + dc
     assert dq.getUrl(session) == expected
Example #4
0
 def test_DnQuery_getUrl(self, sessionUrl, dc, requestType):
     session = LoginSession(sessionUrl, 'admin', 'password',
                            requestFormat=requestType)
     dn = 'uni'
     dq = DnQuery('uni')
     expected = sessionUrl + '/api/mo/' + dn + '.' + requestType
     dq.id = dc
     expected += '?_dc=' + dc
     assert dq.getUrl(session) == expected