diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-03-07 16:57:43 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-03-07 16:57:43 +0000 |
| commit | 205ae0e54ba0c5fdeb5d2e884997c80cb52f1799 (patch) | |
| tree | cc85d43a8e09cb15111290f9302c4c6188c0784c /python/tests | |
| parent | e385ba8c6612ac396a4d9ecbd5c8ffa18977e25a (diff) | |
| download | qpid-python-205ae0e54ba0c5fdeb5d2e884997c80cb52f1799.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/qpid@634744 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests')
| -rw-r--r-- | python/tests/connection010.py | 1 | ||||
| -rw-r--r-- | python/tests/datatypes.py | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/python/tests/connection010.py b/python/tests/connection010.py index 8adf20fd78..e966ede377 100644 --- a/python/tests/connection010.py +++ b/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/python/tests/datatypes.py b/python/tests/datatypes.py index e22e250f61..7844cf4d10 100644 --- a/python/tests/datatypes.py +++ b/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 |
