summaryrefslogtreecommitdiff
path: root/source4/param/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-21 16:39:17 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-21 16:39:17 +0100
commita32194033a6dcfe368b7ff64789fa152f090e7e6 (patch)
tree874d2e1eae6dade466b41fe2a8773e2dc0519354 /source4/param/tests
parentf06b083ff3498e9a2157fdab687e2600a9b8ca72 (diff)
downloadsamba-a32194033a6dcfe368b7ff64789fa152f090e7e6.tar.gz
samba-a32194033a6dcfe368b7ff64789fa152f090e7e6.tar.bz2
samba-a32194033a6dcfe368b7ff64789fa152f090e7e6.zip
Move tests for ParamFile.
Diffstat (limited to 'source4/param/tests')
-rw-r--r--source4/param/tests/bindings.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/source4/param/tests/bindings.py b/source4/param/tests/bindings.py
index d1d71e4485..41a67f93fc 100644
--- a/source4/param/tests/bindings.py
+++ b/source4/param/tests/bindings.py
@@ -50,23 +50,3 @@ class LoadParmTestCase(unittest.TestCase):
file = param.LoadParm()
file.load_default()
-class ParamTestCase(unittest.TestCase):
- def test_init(self):
- file = param.ParamFile()
- self.assertTrue(file is not None)
-
- def test_add_section(self):
- file = param.ParamFile()
- file.add_section("global")
- self.assertTrue(file["global"] is not None)
-
- def test_set_param_string(self):
- file = param.ParamFile()
- file.add_section("global")
- file.set_string("data", "bar")
- self.assertEquals("bar", file.get_string("data"))
-
- def test_get_section(self):
- file = param.ParamFile()
- self.assertEquals(None, file.get_section("unknown"))
- self.assertRaises(KeyError, lambda: file["unknown"])