def test_DnQuery_options(self): did = '1234567890' expectedOptions = '' dq = DnQuery('uni') dq.id = did expectedOptions += '_dc=' + did assert dq.options == expectedOptions
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