Add more XEP-0047 tests.

This commit is contained in:
Lance Stout
2012-02-03 16:29:38 +01:00
parent d565e4be20
commit caa967105c
2 changed files with 83 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ class Data(ElementBase):
self._set_attr('seq', str(value))
def get_data(self):
b64_data = self.xml.text
b64_data = self.xml.text.strip()
if VALID_B64.match(b64_data).group() == b64_data:
return from_b64(b64_data)
else: