Logo Search packages:      
Sourcecode: telepathy-sofiasip version File versions

test-register.py

"""
Test connecting to a server (successful REGISTER).
"""

from sofiatest import exec_test

def test(q, bus, conn, sip):
    conn.Connect()
    q.expect('dbus-signal', signal='StatusChanged', args=[1, 1])
    q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
    conn.Disconnect()
    q.expect('dbus-signal', signal='StatusChanged', args=[2, 1])
    return True

if __name__ == '__main__':
    exec_test(test)


Generated by  Doxygen 1.6.0   Back to index