Mercurial > libervia-backend
comparison sat/test/constants.py @ 2624:56f94936df1e
code style reformatting using black
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 27 Jun 2018 20:14:46 +0200 |
parents | 26edcf3a30eb |
children | 003b8b4b56a7 |
comparison
equal
deleted
inserted
replaced
2623:49533de4540b | 2624:56f94936df1e |
---|---|
21 from twisted.words.protocols.jabber import jid | 21 from twisted.words.protocols.jabber import jid |
22 | 22 |
23 | 23 |
24 class Const(object): | 24 class Const(object): |
25 | 25 |
26 PROF_KEY_NONE = '@NONE@' | 26 PROF_KEY_NONE = "@NONE@" |
27 | 27 |
28 PROFILE = ['test_profile', 'test_profile2', 'test_profile3', 'test_profile4', 'test_profile5'] | 28 PROFILE = [ |
29 JID_STR = [u"test@example.org/SàT", u"sender@example.net/house", u"sender@example.net/work", u"sender@server.net/res", u"xxx@server.net/res"] | 29 "test_profile", |
30 "test_profile2", | |
31 "test_profile3", | |
32 "test_profile4", | |
33 "test_profile5", | |
34 ] | |
35 JID_STR = [ | |
36 u"test@example.org/SàT", | |
37 u"sender@example.net/house", | |
38 u"sender@example.net/work", | |
39 u"sender@server.net/res", | |
40 u"xxx@server.net/res", | |
41 ] | |
30 JID = [jid.JID(jid_s) for jid_s in JID_STR] | 42 JID = [jid.JID(jid_s) for jid_s in JID_STR] |
31 | 43 |
32 PROFILE_DICT = {} | 44 PROFILE_DICT = {} |
33 for i in xrange(0, len(PROFILE)): | 45 for i in xrange(0, len(PROFILE)): |
34 PROFILE_DICT[PROFILE[i]] = JID[i] | 46 PROFILE_DICT[PROFILE[i]] = JID[i] |