diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2009-08-20 23:03:28 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2009-08-20 23:03:28 +0000 |
| commit | 7d955b5b4f78981b7bf596c70327b5a909bdfb15 (patch) | |
| tree | 69cbf083d1dcc1dbc9471532d073f2d16f2bb31b /qpid/python/tests | |
| parent | 074f277678fb95db03699646b71dc0fce903ee1d (diff) | |
| download | qpid-python-7d955b5b4f78981b7bf596c70327b5a909bdfb15.tar.gz | |
implemented reconnect and separated out the protocol driver from the messaging client
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@806393 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests')
| -rw-r--r-- | qpid/python/tests/datatypes.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qpid/python/tests/datatypes.py b/qpid/python/tests/datatypes.py index 1a60bb4107..b00e5e78f8 100644 --- a/qpid/python/tests/datatypes.py +++ b/qpid/python/tests/datatypes.py @@ -54,6 +54,19 @@ class SerialTest(TestCase): d[serial(0)] = "zero" assert d[0] == "zero" + def testAdd(self): + assert serial(2) + 2 == serial(4) + assert serial(2) + 2 == 4 + + def testSub(self): + delta = serial(4) - serial(2) + assert isinstance(delta, int) or isinstance(delta, long) + assert delta == 2 + + delta = serial(4) - 2 + assert isinstance(delta, Serial) + assert delta == serial(2) + class RangedSetTest(TestCase): def check(self, ranges): |
