summaryrefslogtreecommitdiff
path: root/python/tests/spec.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-08-20 17:31:57 +0000
committerRafael H. Schloming <rhs@apache.org>2007-08-20 17:31:57 +0000
commit519aea5b672320304fef1f7487ce7f4976f2a04d (patch)
tree1b1396a40496f13496361adbd4e32272b3d2c1e8 /python/tests/spec.py
parent16db1cb57501363fea65127cb5eee797399305ac (diff)
downloadqpid-python-519aea5b672320304fef1f7487ce7f4976f2a04d.tar.gz
Permit skipping of self tests and specify a folder for the spec file. Patch is mostly as supplied by eokyere@gmail.com with minor modifications.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@567764 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests/spec.py')
-rw-r--r--python/tests/spec.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/tests/spec.py b/python/tests/spec.py
index c70e4f9c4b..c00faad3ba 100644
--- a/python/tests/spec.py
+++ b/python/tests/spec.py
@@ -1,11 +1,11 @@
from unittest import TestCase
from qpid.spec import load
-
+from qpid.testlib import testrunner
class SpecTest(TestCase):
def check_load(self, *urls):
- spec = load(*urls)
+ spec = load(*map(testrunner.get_spec_file, urls))
qdecl = spec.method("queue_declare")
assert qdecl != None
assert not qdecl.content
@@ -44,13 +44,13 @@ class SpecTest(TestCase):
assert args.type == "table"
def test_load_0_8(self):
- self.check_load("../specs/amqp.0-8.xml")
+ self.check_load("amqp.0-8.xml")
def test_load_0_9(self):
- self.check_load("../specs/amqp.0-9.xml")
+ self.check_load("amqp.0-9.xml")
def test_load_0_9_errata(self):
- self.check_load("../specs/amqp.0-9.xml", "../specs/amqp-errata.0-9.xml")
+ self.check_load("amqp.0-9.xml", "amqp-errata.0-9.xml")
def test_load_0_10(self):
- self.check_load("../specs/amqp.0-10-preview.xml")
+ self.check_load("amqp.0-10-preview.xml")