def test_search(self): data = search('john') self.assertTrue(len(data) >= 1) self.assertIn('uid', data[0]) self.assertIn('cn', data[0])
def test_search(self): data = search('john') assert len(data) >= 1 assert 'uid' in data[0] assert 'cn' in data[0]
def test_search(self): data = hs.search('john') self.assertTrue(len(data) >= 1) self.assertIn('uid', data[0]) self.assertIn('cn', data[0])
def test_search(self): data = search('john') assert len(data) >= 1 self.assertIn('uid', data[0]) self.assertIn('cn', data[0])