Underscore names by default.
Stanza objects now accept the use of underscored names. The CamelCase versions are still available for backwards compatibility, but are discouraged. The property stanza.values now maps to the old getStanzaValues and setStanzaValues, in addition to _set_stanza_values and _get_stanza_values.
This commit is contained in:
@@ -5,9 +5,9 @@ import sleekxmpp.plugins.gmail_notify as gmail
|
||||
class TestGmail(SleekTest):
|
||||
|
||||
def setUp(self):
|
||||
registerStanzaPlugin(Iq, gmail.GmailQuery)
|
||||
registerStanzaPlugin(Iq, gmail.MailBox)
|
||||
registerStanzaPlugin(Iq, gmail.NewMail)
|
||||
register_stanza_plugin(Iq, gmail.GmailQuery)
|
||||
register_stanza_plugin(Iq, gmail.MailBox)
|
||||
register_stanza_plugin(Iq, gmail.NewMail)
|
||||
|
||||
def testCreateQuery(self):
|
||||
"""Testing querying Gmail for emails."""
|
||||
|
||||
Reference in New Issue
Block a user