summaryrefslogtreecommitdiff
path: root/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
commite9e915775bdb77b6483c48f111be3299b94f592b (patch)
treef0a4e10d87e810982223985ed26d2024bbe6509f /python/tests
parentb7c474ea80fce5d53236aeea9f74c9107da0152d (diff)
downloadqpid-python-e9e915775bdb77b6483c48f111be3299b94f592b.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/qpid@634255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/datatypes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/tests/datatypes.py b/python/tests/datatypes.py
index cafd53c89f..e22e250f61 100644
--- a/python/tests/datatypes.py
+++ b/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)