`list = res.msgs` tests nothing more than a bare `res.msgs`,
and we can instead assert that the result is a list.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
def test_get_msgs(self):
res = self.l.search()
- list = res.msgs
+ self.assertIsInstance(res.msgs, list)
def test_get_controls(self):
res = self.l.search()
- list = res.controls
+ self.assertIsInstance(res.controls, list)
def test_get_referals(self):
res = self.l.search()
- list = res.referals
+ self.assertIsInstance(res.referals, list)
def test_iter_msgs(self):
found = False