Code style cleanup
darcs-hash:20070605194536-86b55-ae0012186a0fea6e8d599ba66ed6b1823fa58b30.gz
This commit is contained in:
@@ -676,15 +676,15 @@ class MailHandler_TestCase(unittest.TestCase):
|
|||||||
|
|
||||||
def test_filter(self):
|
def test_filter(self):
|
||||||
account.hub.threadConnection = connectionForURI('sqlite://' + DB_URL)
|
account.hub.threadConnection = connectionForURI('sqlite://' + DB_URL)
|
||||||
account11 = SMTPAccount(user_jid = "user1@test.com", \
|
account11 = SMTPAccount(user_jid="user1@test.com",
|
||||||
name = "account11", \
|
name="account11",
|
||||||
jid="account11@jcl.test.com")
|
jid="account11@jcl.test.com")
|
||||||
account11.default_account = True
|
account11.default_account = True
|
||||||
account12 = SMTPAccount(user_jid = "user1@test.com", \
|
account12 = SMTPAccount(user_jid="user1@test.com",
|
||||||
name = "account12", \
|
name="account12",
|
||||||
jid="account12@jcl.test.com")
|
jid="account12@jcl.test.com")
|
||||||
message = Message(from_jid = "user1@test.com", \
|
message = Message(from_jid="user1@test.com",
|
||||||
to_jid = "user2%test.com@jcl.test.com", \
|
to_jid="user2%test.com@jcl.test.com",
|
||||||
body="message")
|
body="message")
|
||||||
accounts = self.handler.filter(message, None)
|
accounts = self.handler.filter(message, None)
|
||||||
self.assertNotEquals(accounts, None)
|
self.assertNotEquals(accounts, None)
|
||||||
|
|||||||
Reference in New Issue
Block a user