summaryrefslogtreecommitdiff
path: root/tests/test_stanza_element.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-10-04 21:15:01 +0200
committermathieui <mathieui@mathieui.net>2016-10-04 21:15:01 +0200
commit5da31db0c7386f43a344ab7c9bc82dc0a6836b85 (patch)
tree130e227331749d1b6e332ab2a4ca33907ba4efc5 /tests/test_stanza_element.py
parentf8cea760b661b6c995c73d6bee3e163d78d33353 (diff)
downloadslixmpp-5da31db0c7386f43a344ab7c9bc82dc0a6836b85.tar.gz
slixmpp-5da31db0c7386f43a344ab7c9bc82dc0a6836b85.tar.bz2
slixmpp-5da31db0c7386f43a344ab7c9bc82dc0a6836b85.tar.xz
slixmpp-5da31db0c7386f43a344ab7c9bc82dc0a6836b85.zip
Fix stanza accessors case in tests
They were using deprecated (and-removed) style.
Diffstat (limited to 'tests/test_stanza_element.py')
-rw-r--r--tests/test_stanza_element.py34
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/test_stanza_element.py b/tests/test_stanza_element.py
index 0c49f201..240203cc 100644
--- a/tests/test_stanza_element.py
+++ b/tests/test_stanza_element.py
@@ -142,7 +142,7 @@ class TestElementBase(SlixTest):
interfaces = set(('bar', 'baz', 'qux'))
sub_interfaces = set(('baz',))
- def getQux(self):
+ def get_qux(self):
return 'qux'
class TestStanzaPlugin(ElementBase):
@@ -188,7 +188,7 @@ class TestElementBase(SlixTest):
interfaces = set(('bar', 'baz', 'qux'))
sub_interfaces = set(('baz',))
- def setQux(self, value):
+ def set_qux(self, value):
pass
class TestStanzaPlugin(ElementBase):
@@ -222,7 +222,7 @@ class TestElementBase(SlixTest):
interfaces = set(('bar', 'baz', 'qux'))
sub_interfaces = set(('bar',))
- def delQux(self):
+ def del_qux(self):
pass
class TestStanzaPlugin(ElementBase):
@@ -300,14 +300,14 @@ class TestElementBase(SlixTest):
namespace = "foo"
interfaces = set(('bar',))
- def setBar(self, value):
+ def set_bar(self, value):
wrapper = ET.Element("{foo}wrapper")
bar = ET.Element("{foo}bar")
bar.text = value
wrapper.append(bar)
self.xml.append(wrapper)
- def getBar(self):
+ def get_bar(self):
return self._get_sub_text("wrapper/bar", default="not found")
stanza = TestStanza()
@@ -333,16 +333,16 @@ class TestElementBase(SlixTest):
namespace = "foo"
interfaces = set(('bar', 'baz'))
- def setBaz(self, value):
+ def set_baz(self, value):
self._set_sub_text("wrapper/baz", text=value)
- def getBaz(self):
+ def get_baz(self):
return self._get_sub_text("wrapper/baz")
- def setBar(self, value):
+ def set_bar(self, value):
self._set_sub_text("wrapper/bar", text=value)
- def getBar(self):
+ def get_bar(self):
return self._get_sub_text("wrapper/bar")
stanza = TestStanza()
@@ -384,22 +384,22 @@ class TestElementBase(SlixTest):
namespace = "foo"
interfaces = set(('bar', 'baz'))
- def setBar(self, value):
+ def set_bar(self, value):
self._set_sub_text("path/to/only/bar", value)
- def getBar(self):
+ def get_bar(self):
return self._get_sub_text("path/to/only/bar")
- def delBar(self):
+ def del_bar(self):
self._del_sub("path/to/only/bar")
- def setBaz(self, value):
+ def set_baz(self, value):
self._set_sub_text("path/to/just/baz", value)
- def getBaz(self):
+ def get_baz(self):
return self._get_sub_text("path/to/just/baz")
- def delBaz(self):
+ def del_baz(self):
self._del_sub("path/to/just/baz")
stanza = TestStanza()
@@ -466,10 +466,10 @@ class TestElementBase(SlixTest):
interfaces = set(('bar','baz', 'qux'))
sub_interfaces = set(('qux',))
- def setQux(self, value):
+ def set_qux(self, value):
self._set_sub_text('qux', text=value)
- def getQux(self):
+ def get_qux(self):
return self._get_sub_text('qux')
class TestStanzaPlugin(ElementBase):