diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-05-12 15:37:10 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-05-12 15:37:10 +0000 |
| commit | 300e4a05c955fb014294a12e712f3f5fbbe746b8 (patch) | |
| tree | d64c5c414e3116a79e1a6412f9913febe32309e2 /python/tests | |
| parent | 5067ee6c9e25f1d323f0cf4520f07ff123caba02 (diff) | |
| download | qpid-python-300e4a05c955fb014294a12e712f3f5fbbe746b8.tar.gz | |
QPID-947: added handler for known_completed and generate known_completed when timely-reply is set
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@655533 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests')
| -rw-r--r-- | python/tests/datatypes.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/python/tests/datatypes.py b/python/tests/datatypes.py index 5c6ee82283..6d8703ed4f 100644 --- a/python/tests/datatypes.py +++ b/python/tests/datatypes.py @@ -103,6 +103,34 @@ class RangedSetTest(TestCase): assert range.lower == 0 assert range.upper == 8 +class RangeTest(TestCase): + + def testIntersect1(self): + a = Range(0, 10) + b = Range(9, 20) + i1 = a.intersect(b) + i2 = b.intersect(a) + assert i1.upper == 10 + assert i2.upper == 10 + assert i1.lower == 9 + assert i2.lower == 9 + + def testIntersect2(self): + a = Range(0, 10) + b = Range(11, 20) + assert a.intersect(b) == None + assert b.intersect(a) == None + + def testIntersect3(self): + a = Range(0, 10) + b = Range(3, 5) + i1 = a.intersect(b) + i2 = b.intersect(a) + assert i1.upper == 5 + assert i2.upper == 5 + assert i1.lower == 3 + assert i2.lower == 3 + class UUIDTest(TestCase): def test(self): |
