pytest/dns: use self.assertIn() and .assertNotIn()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 24 Mar 2021 02:16:21 +0000 (15:16 +1300)
committerJeremy Allison <jra@samba.org>
Mon, 29 Mar 2021 23:20:37 +0000 (23:20 +0000)
commit49f434ca08ee4f35fba57082603f3dc83447a2e6
treec811ecf44c47863568ea19e204a1b3ee70c269dd
parent820c735578b3a84d33fb8ccb1899790ac8823487
pytest/dns: use self.assertIn() and .assertNotIn()

These give a more detailed message than assertTrue(x in y).

They were new in Python 3.1, so we avoided them until recently.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/tests/blackbox/samba_dnsupdate.py
python/samba/tests/dcerpc/dnsserver.py
python/samba/tests/dns.py