mirror of
git://git.psyced.org/git/pypsyc
synced 2024-08-15 03:20:04 +00:00
added new pypsyc as 'mjacob2'
This commit is contained in:
parent
0abc7a0888
commit
9f7c4147c7
46 changed files with 7243 additions and 0 deletions
41
mjacob2/tests/constants.py
Normal file
41
mjacob2/tests/constants.py
Normal file
|
@ -0,0 +1,41 @@
|
|||
from pypsyc.client.model import Presence
|
||||
from pypsyc.core.mmp import Uni
|
||||
|
||||
|
||||
SERVER1 = 'server1'
|
||||
SERVER1_UNI = Uni('psyc://%s/' % SERVER1)
|
||||
USER1 = '~user1'
|
||||
USER2 = '~user2'
|
||||
USER1_UNI = SERVER1_UNI.chain(USER1)
|
||||
USER2_UNI = SERVER1_UNI.chain(USER2)
|
||||
USER1_NICK = 'user1'
|
||||
USER2_NICK = 'user2'
|
||||
RESOURCE = '*Resource'
|
||||
RESOURCE1_UNI = USER1_UNI.chain(RESOURCE)
|
||||
RESOURCE2_UNI = USER2_UNI.chain(RESOURCE)
|
||||
PLACE = '@place'
|
||||
PLACE_UNI = SERVER1_UNI.chain(PLACE)
|
||||
SERVER2 = 'server2'
|
||||
SERVER2_UNI = Uni('psyc://%s/' % SERVER2)
|
||||
SERVER3 = 'server3'
|
||||
SERVER3_UNI = Uni('psyc://%s/' % SERVER3)
|
||||
|
||||
INTERFACE = 'interface'
|
||||
IP = '10.0.0.1'
|
||||
PORT = 4404
|
||||
VARIABLES = {'_key': 'value'}
|
||||
CONTENT = ['']
|
||||
|
||||
PASSWORD = 'password'
|
||||
MESSAGE = 'message'
|
||||
UNKNOWN = 0
|
||||
OFFLINE = 1
|
||||
ONLINE = 7
|
||||
PRESENCE_UNKNOWN = Presence(UNKNOWN)
|
||||
PRESENCE_OFFLINE = Presence(OFFLINE)
|
||||
PRESENCE_ONLINE = Presence(ONLINE)
|
||||
PENDING = 'pending'
|
||||
OFFERED = 'offered'
|
||||
ESTABLISHED = 'established'
|
||||
ERROR = 'error'
|
||||
EXCEPTION = Exception(ERROR)
|
Loading…
Add table
Add a link
Reference in a new issue