summaryrefslogtreecommitdiff
path: root/qpid/python/tests
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-03-07 16:57:43 +0000
committerRafael H. Schloming <rhs@apache.org>2008-03-07 16:57:43 +0000
commitb61f65b395e220c76ee207d1ce42ed474571d5e5 (patch)
treeaecaf1611d3bb3b1c7c6a0d5ac4cf72cdab46498 /qpid/python/tests
parent791cd5a65e193ad4a1645065256a244ee238e9e4 (diff)
downloadqpid-python-b61f65b395e220c76ee207d1ce42ed474571d5e5.tar.gz
added session.sync(); session.auto_sync; made transfers not auto-complete; fixed bug in RangedSet
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@634744 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests')
-rw-r--r--qpid/python/tests/connection010.py1
-rw-r--r--qpid/python/tests/datatypes.py11
2 files changed, 12 insertions, 0 deletions
diff --git a/qpid/python/tests/connection010.py b/qpid/python/tests/connection010.py
index 8adf20fd78..e966ede377 100644
--- a/qpid/python/tests/connection010.py
+++ b/qpid/python/tests/connection010.py
@@ -39,6 +39,7 @@ class TestServer:
return Server(connection, delegate=self.session)
def session(self, session):
+ session.auto_sync = False
return TestSession(session, self.queue)
class TestSession(Delegate):
diff --git a/qpid/python/tests/datatypes.py b/qpid/python/tests/datatypes.py
index e22e250f61..7844cf4d10 100644
--- a/qpid/python/tests/datatypes.py
+++ b/qpid/python/tests/datatypes.py
@@ -89,3 +89,14 @@ class RangedSetTest(TestCase):
assert 21 not in rs
assert 20 in rs
self.check(rs.ranges)
+
+ def testAddSelf(self):
+ a = RangedSet()
+ a.add(0, 8)
+ self.check(a.ranges)
+ a.add(0, 8)
+ self.check(a.ranges)
+ assert len(a.ranges) == 1
+ range = a.ranges[0]
+ assert range.lower == 0
+ assert range.upper == 8