summaryrefslogtreecommitdiff
path: root/tests/test_elementbase.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-08-30 14:55:30 -0400
committerLance Stout <lancestout@gmail.com>2010-08-30 14:55:30 -0400
commit9c62bce2060e30e41c3710587f6bd9992625b245 (patch)
tree2439d8ba0f0d8ed24db82f7db8cce762195ae17f /tests/test_elementbase.py
parentf5ae27da4f542670560a4ecc0373d7001366b496 (diff)
downloadslixmpp-9c62bce2060e30e41c3710587f6bd9992625b245.tar.gz
slixmpp-9c62bce2060e30e41c3710587f6bd9992625b245.tar.bz2
slixmpp-9c62bce2060e30e41c3710587f6bd9992625b245.tar.xz
slixmpp-9c62bce2060e30e41c3710587f6bd9992625b245.zip
Updated ElementBase.match to respect namespaces with slashes.
Required adding option to _fix_ns to not propagate namespaces to child elements.
Diffstat (limited to 'tests/test_elementbase.py')
-rw-r--r--tests/test_elementbase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_elementbase.py b/tests/test_elementbase.py
index b6d7c6f0..8898b3fc 100644
--- a/tests/test_elementbase.py
+++ b/tests/test_elementbase.py
@@ -459,7 +459,7 @@ class TestElementBase(SleekTest):
class TestStanzaPlugin(ElementBase):
name = "plugin"
- namespace = "bar"
+ namespace = "http://test/slash/bar"
interfaces = set(('attrib',))
registerStanzaPlugin(TestStanza, TestStanzaPlugin)
@@ -483,7 +483,7 @@ class TestElementBase(SleekTest):
self.failUnless(stanza.match("foo/plugin@attrib=c"),
"Stanza did not match with plugin and attribute.")
- self.failUnless(stanza.match("foo/{bar}plugin"),
+ self.failUnless(stanza.match("foo/{http://test/slash/bar}plugin"),
"Stanza did not match with namespaced plugin.")
substanza = TestSubStanza()