Updated tests to use a relative import for SleekTest to please Python3.

Fixed some tabs/spaces issues.
This commit is contained in:
Lance Stout 2010-08-05 20:23:07 -04:00
parent c54466596f
commit 58f77d898f
13 changed files with 337 additions and 336 deletions

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
import sleekxmpp.plugins.xep_0033 as xep_0033
@ -45,7 +45,8 @@ class TestAddresses(SleekTest):
"""
msg = self.Message()
msg['addresses'].setAddresses([{'type':'replyto',
msg['addresses'].setAddresses([
{'type':'replyto',
'jid':'replyto@header1.org',
'desc':'Reply address'},
{'type':'cc',

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
import sleekxmpp.plugins.xep_0085 as xep_0085
class TestChatStates(SleekTest):

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
import sleekxmpp.plugins.xep_0030 as xep_0030

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
class TestErrorStanzas(SleekTest):

View file

@ -1,5 +1,5 @@
import sleekxmpp
from sleektest import *
from . sleektest import *
class TestEvents(SleekTest):

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
import sleekxmpp.plugins.xep_0004 as xep_0004

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
import sleekxmpp.plugins.gmail_notify as gmail

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
from sleekxmpp.xmlstream.stanzabase import ET

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
from sleekxmpp.xmlstream.jid import JID
class TestJIDClass(SleekTest):

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
from sleekxmpp.stanza.message import Message
from sleekxmpp.stanza.htmlim import HTMLIM

View file

@ -1,5 +1,5 @@
import sleekxmpp
from sleektest import *
from . sleektest import *
from sleekxmpp.stanza.presence import Presence

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
import sleekxmpp.plugins.xep_0004 as xep_0004
import sleekxmpp.plugins.stanza_pubsub as pubsub
@ -166,7 +166,7 @@ class TestPubsubStanzas(SleekTest):
</iq>""", use_values=False)
def testSubscribe(self):
"Testing iq/pubsub/subscribe stanzas"
"testing iq/pubsub/subscribe stanzas"
iq = self.Iq()
iq['pubsub']['subscribe']['options']
iq['pubsub']['subscribe']['node'] = 'cheese'
@ -174,7 +174,7 @@ class TestPubsubStanzas(SleekTest):
iq['pubsub']['subscribe']['options']['node'] = 'cheese'
iq['pubsub']['subscribe']['options']['jid'] = 'fritzy@netflint.net/sleekxmpp'
form = xep_0004.Form()
form.addField('pubsub#title', ftype='text-single', value='This thing is awesome')
form.addField('pubsub#title', ftype='text-single', value='this thing is awesome')
iq['pubsub']['subscribe']['options']['options'] = form
self.checkIq(iq, """
<iq id="0">
@ -183,7 +183,7 @@ class TestPubsubStanzas(SleekTest):
<options node="cheese" jid="fritzy@netflint.net/sleekxmpp">
<x xmlns="jabber:x:data" type="form">
<field var="pubsub#title" type="text-single">
<value>This thing is awesome</value>
<value>this thing is awesome</value>
</field>
</x>
</options>

View file

@ -1,4 +1,4 @@
from sleektest import *
from . sleektest import *
import sleekxmpp.plugins.xep_0033 as xep_0033