docs-xml: "cluster addresses" dns registration
[Samba.git] / python / samba / tests / policy.py
blob538efcd95b0607b6a15534ced7907c7cdf1a51b3
1 # Unix SMB/CIFS implementation.
2 # Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2010
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 """Tests for the libpolicy Python bindings.
20 """
22 from samba.tests import TestCase
23 from samba import policy
26 class PolicyTests(TestCase):
28 def test_get_gpo_flags(self):
29 self.assertEquals(["GPO_FLAG_USER_DISABLE"],
30 policy.get_gpo_flags(policy.GPO_FLAG_USER_DISABLE))
32 def test_get_gplink_options(self):
33 self.assertEquals(["GPLINK_OPT_DISABLE"],
34 policy.get_gplink_options(policy.GPLINK_OPT_DISABLE))