summaryrefslogtreecommitdiff
path: root/qpid/python/tests
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-03-06 13:00:58 +0000
committerRafael H. Schloming <rhs@apache.org>2008-03-06 13:00:58 +0000
commitabd31e8b7fc71145d2553020da2c405f8e4cf35d (patch)
tree8d5dd2bb23b7a08f856466bd6cee8c0dfe188e5c /qpid/python/tests
parent7f4b49eba1746a7ce90378dd5f311db38317b16a (diff)
downloadqpid-python-abd31e8b7fc71145d2553020da2c405f8e4cf35d.tar.gz
added codec for sequence_set; added id to Message; RangeSet -> RangedSet; added RangedSet.add(lower, upper)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@634255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests')
-rw-r--r--qpid/python/tests/datatypes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/python/tests/datatypes.py b/qpid/python/tests/datatypes.py
index cafd53c89f..e22e250f61 100644
--- a/qpid/python/tests/datatypes.py
+++ b/qpid/python/tests/datatypes.py
@@ -20,7 +20,7 @@
from unittest import TestCase
from qpid.datatypes import *
-class RangeSetTest(TestCase):
+class RangedSetTest(TestCase):
def check(self, ranges):
posts = []
@@ -39,7 +39,7 @@ class RangeSetTest(TestCase):
idx += 2
def test(self):
- rs = RangeSet()
+ rs = RangedSet()
self.check(rs.ranges)
@@ -85,7 +85,7 @@ class RangeSetTest(TestCase):
rs.add(-3)
self.check(rs.ranges)
- rs.add_range(Range(1, 20))
+ rs.add(1, 20)
assert 21 not in rs
assert 20 in rs
self.check(rs.ranges)