summaryrefslogtreecommitdiff
path: root/python/qpid/tests
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2011-01-13 16:37:59 +0000
committerRafael H. Schloming <rhs@apache.org>2011-01-13 16:37:59 +0000
commit17f625e00d2f8e4a3a68cd709d96effde522a580 (patch)
tree43e7f938a647ebcf9607387fff7770710c429948 /python/qpid/tests
parent1101bbfb47c729473d39595f3b81fbba4b093dd1 (diff)
downloadqpid-python-17f625e00d2f8e4a3a68cd709d96effde522a580.tar.gz
made address parser recognize lowercase true and false
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1058654 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests')
-rw-r--r--python/qpid/tests/messaging/address.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/python/qpid/tests/messaging/address.py b/python/qpid/tests/messaging/address.py
index 869cf55cba..aa9562a717 100644
--- a/python/qpid/tests/messaging/address.py
+++ b/python/qpid/tests/messaging/address.py
@@ -19,8 +19,8 @@
from qpid.tests import Test
-from qpid.messaging.address import lex, parse, ParseError, EOF, ID, NONE, \
- NUMBER, SYM, WSPACE, LEXER
+from qpid.messaging.address import lex, parse, ParseError, EOF, ID, NUMBER, \
+ SYM, WSPACE, LEXER
from qpid.lexer import Token
from qpid.harness import Skipped
from qpid.tests.parser import ParserBase
@@ -149,8 +149,11 @@ class AddressTests(ParserBase, Test):
def testNegativeNum(self):
self.lex("-3", NUMBER)
- def testNone(self):
- self.lex("None", NONE)
+ def testIdNum(self):
+ self.lex("id1", ID)
+
+ def testIdSpaceNum(self):
+ self.lex("id 1", ID, NUMBER)
def testHash(self):
self.valid("foo/bar.#", "foo", "bar.#")
@@ -312,5 +315,7 @@ class AddressTests(ParserBase, Test):
"name", "subject", {"foo.bar": "value"})
def testBoolean(self):
- self.valid("name/subject; { true: True, false: False }",
- "name", "subject", {"true": True, "false": False})
+ self.valid("name/subject; { true1: True, true2: true, "
+ "false1: False, false2: false }",
+ "name", "subject", {"true1": True, "true2": True,
+ "false1": False, "false2": False})