PEP8: fix E302: expected 2 blank lines, found 1
[bbaumbach/samba-autobuild/.git] / python / samba / tests / policy.py
1 # Unix SMB/CIFS implementation.
2 # Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2010
3 #
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.
8 #
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.
13 #
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/>.
16 #
17
18 """Tests for the libpolicy Python bindings.
19
20 """
21
22 from samba.tests import TestCase
23 from samba import policy
24
25
26 class PolicyTests(TestCase):
27
28     def test_get_gpo_flags(self):
29         self.assertEquals(["GPO_FLAG_USER_DISABLE"],
30                           policy.get_gpo_flags(policy.GPO_FLAG_USER_DISABLE))
31
32     def test_get_gplink_options(self):
33         self.assertEquals(["GPLINK_OPT_DISABLE"],
34                           policy.get_gplink_options(policy.GPLINK_OPT_DISABLE))