tests: Add basic test for non-global LoadParm behaviour
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 26 Jun 2018 22:39:23 +0000 (10:39 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 28 Jun 2018 01:34:27 +0000 (03:34 +0200)
commit66f8c86e9af21102a86a22343350e4ff1b1daf61
treec22ef5e1cd5bcc1a98bf2e35b41fba9e5f2e5c04
parent5728867ddcc4487bde53a11cf865563b59624eb1
tests: Add basic test for non-global LoadParm behaviour

Add a simple test to show that the new non-global LoadParm behaviour
works, i.e.
- by default all LoadParm objects are linked to the same underlying
  object
- using a non-global LoadParm creates a separate underlying object.
- using a non-global LoadParm with a bad filename fails.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/loadparm.py [new file with mode: 0644]
source4/selftest/tests.py