Move get_register handlers in AccountManager
darcs-hash:20070329051608-86b55-adccf703bd3fe6efa583c6e8d3dcadf60f0168b0.gz
This commit is contained in:
@@ -648,7 +648,7 @@ class JCLComponent_TestCase(unittest.TestCase):
|
||||
def test_handle_get_register_new_complex(self):
|
||||
self.comp.stream = MockStream()
|
||||
self.comp.stream_class = MockStream
|
||||
self.comp.account_classes = [ExampleAccount]
|
||||
self.comp.account_manager.account_classes = (ExampleAccount,)
|
||||
self.comp.handle_get_register(Iq(stanza_type = "get", \
|
||||
from_jid = "user1@test.com", \
|
||||
to_jid = "jcl.test.com"))
|
||||
@@ -808,7 +808,7 @@ class JCLComponent_TestCase(unittest.TestCase):
|
||||
def test_handle_get_register_new_type1(self):
|
||||
self.comp.stream = MockStream()
|
||||
self.comp.stream_class = MockStream
|
||||
self.comp.account_classes = [ExampleAccount, Example2Account]
|
||||
self.comp.account_manager.account_classes = (ExampleAccount, Example2Account)
|
||||
self.comp.handle_get_register(Iq(stanza_type = "get", \
|
||||
from_jid = "user1@test.com", \
|
||||
to_jid = "jcl.test.com/example"))
|
||||
@@ -817,7 +817,7 @@ class JCLComponent_TestCase(unittest.TestCase):
|
||||
def test_handle_get_register_new_type2(self):
|
||||
self.comp.stream = MockStream()
|
||||
self.comp.stream_class = MockStream
|
||||
self.comp.account_classes = [ExampleAccount, Example2Account]
|
||||
self.comp.account_manager.account_classes = (ExampleAccount, Example2Account)
|
||||
self.comp.handle_get_register(Iq(stanza_type = "get", \
|
||||
from_jid = JID("user1@test.com"), \
|
||||
to_jid = JID("jcl.test.com/example2")))
|
||||
|
||||
Reference in New Issue
Block a user