summaryrefslogtreecommitdiff
path: root/tests/test_errorstanzas.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-08-05 20:23:07 -0400
committerLance Stout <lancestout@gmail.com>2010-08-05 20:23:07 -0400
commit58f77d898f82ab108fa17d562a32c68d3ea35306 (patch)
tree441530e8518726fb55b2056340fa5ea03bec7638 /tests/test_errorstanzas.py
parentc54466596f3dcc7a35a41c49fff0d057d4a8ed8f (diff)
downloadslixmpp-58f77d898f82ab108fa17d562a32c68d3ea35306.tar.gz
slixmpp-58f77d898f82ab108fa17d562a32c68d3ea35306.tar.bz2
slixmpp-58f77d898f82ab108fa17d562a32c68d3ea35306.tar.xz
slixmpp-58f77d898f82ab108fa17d562a32c68d3ea35306.zip
Updated tests to use a relative import for SleekTest to please Python3.
Fixed some tabs/spaces issues.
Diffstat (limited to 'tests/test_errorstanzas.py')
-rw-r--r--tests/test_errorstanzas.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_errorstanzas.py b/tests/test_errorstanzas.py
index 788d6c12..d6fafc59 100644
--- a/tests/test_errorstanzas.py
+++ b/tests/test_errorstanzas.py
@@ -1,7 +1,7 @@
-from sleektest import *
+from . sleektest import *
class TestErrorStanzas(SleekTest):
-
+
def testSetup(self):
"""Test setting initial values in error stanza."""
msg = self.Message()
@@ -16,7 +16,7 @@ class TestErrorStanzas(SleekTest):
def testCondition(self):
"""Test modifying the error condition."""
- msg = self.Message()
+ msg = self.Message()
msg['error']['condition'] = 'item-not-found'
self.checkMessage(msg, """
@@ -42,7 +42,7 @@ class TestErrorStanzas(SleekTest):
msg = self.Message()
msg['error']['text'] = 'Error!'
msg['error']['condition'] = 'internal-server-error'
-
+
del msg['error']['condition']
self.checkMessage(msg, """