Fixed SleekTest compare method to check XML text.
Corrected resulting test failures. All pass again.
This commit is contained in:
@@ -347,7 +347,7 @@ class TestElementBase(SleekTest):
|
||||
</wrapper>
|
||||
</foo>
|
||||
""")
|
||||
stanza._setSubText('bar', text='', keep=True)
|
||||
stanza._setSubText('wrapper/bar', text='', keep=True)
|
||||
self.checkStanza(TestStanza, stanza, """
|
||||
<foo xmlns="foo">
|
||||
<wrapper>
|
||||
@@ -358,7 +358,7 @@ class TestElementBase(SleekTest):
|
||||
""", use_values=False)
|
||||
|
||||
stanza['bar'] = 'a'
|
||||
stanza._setSubText('bar', text='')
|
||||
stanza._setSubText('wrapper/bar', text='')
|
||||
self.checkStanza(TestStanza, stanza, """
|
||||
<foo xmlns="foo">
|
||||
<wrapper>
|
||||
|
||||
Reference in New Issue
Block a user