git.samba.org
/
metze
/
ctdb
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pytdb: Add support for tdb_add_flags() & tdb_remove_flags()
[metze/ctdb/wip.git]
/
lib
/
tdb
/
python
/
tests
/
simple.py
diff --git
a/lib/tdb/python/tests/simple.py
b/lib/tdb/python/tests/simple.py
index 1c5982b1a42bab6c6c74622dd8e674fc77604b23..0b8b8d922431f7cc65e5b4b5f6389a27bcf53594 100644
(file)
--- a/
lib/tdb/python/tests/simple.py
+++ b/
lib/tdb/python/tests/simple.py
@@
-127,6
+127,10
@@
class SimpleTdbTests(TestCase):
self.tdb["entry"] = "value"
self.assertEquals(1, len(list(self.tdb)))
+ def test_add_flags(self):
+ self.tdb.add_flags(tdb.NOMMAP)
+ self.tdb.remove_flags(tdb.NOMMAP)
+
if __name__ == '__main__':
import unittest