summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-06-19 17:46:57 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-19 22:46:44 +0200
commit5e67566f5e660a91c004aa606d1987fd7665f5dd (patch)
tree732767597cefc2521e2464eb67c5e507896db705 /lib
parent2b7b69544cfc498b731ef0d65759f65376d460fd (diff)
downloadsamba-5e67566f5e660a91c004aa606d1987fd7665f5dd.tar.gz
samba-5e67566f5e660a91c004aa606d1987fd7665f5dd.tar.xz
samba-5e67566f5e660a91c004aa606d1987fd7665f5dd.zip
pytdb: Cleanup formatting.
Diffstat (limited to 'lib')
-rw-r--r--lib/tdb/python/tests/simple.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/tdb/python/tests/simple.py b/lib/tdb/python/tests/simple.py
index 1c5982b1a42..6b1e840f327 100644
--- a/lib/tdb/python/tests/simple.py
+++ b/lib/tdb/python/tests/simple.py
@@ -12,12 +12,15 @@ import os, tempfile
class OpenTdbTests(TestCase):
+
def test_nonexistant_read(self):
- self.assertRaises(IOError, tdb.Tdb, "/some/nonexistant/file", 0, tdb.DEFAULT, os.O_RDWR)
+ self.assertRaises(IOError, tdb.Tdb, "/some/nonexistant/file", 0,
+ tdb.DEFAULT, os.O_RDWR)
class CloseTdbTests(TestCase):
def test_double_close(self):
- self.tdb = tdb.Tdb(tempfile.mkstemp()[1], 0, tdb.DEFAULT, os.O_CREAT|os.O_RDWR)
+ self.tdb = tdb.Tdb(tempfile.mkstemp()[1], 0, tdb.DEFAULT,
+ os.O_CREAT|os.O_RDWR)
self.assertNotEqual(None, self.tdb)
# ensure that double close does not crash python
@@ -26,9 +29,11 @@ class CloseTdbTests(TestCase):
class SimpleTdbTests(TestCase):
+
def setUp(self):
super(SimpleTdbTests, self).setUp()
- self.tdb = tdb.Tdb(tempfile.mkstemp()[1], 0, tdb.DEFAULT, os.O_CREAT|os.O_RDWR)
+ self.tdb = tdb.Tdb(tempfile.mkstemp()[1], 0, tdb.DEFAULT,
+ os.O_CREAT|os.O_RDWR)
self.assertNotEqual(None, self.tdb)
def tearDown(self):