~ubuntu-branches/ubuntu/precise/telepathy-mission-control-5/precise

« back to all changes in this revision

Viewing changes to test/twisted/account-manager/account-basics.py

ImportĀ upstreamĀ versionĀ 5.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from servicetest import EventPattern, tp_name_prefix, tp_path_prefix, \
23
23
        call_async
24
 
from mctest import exec_test, create_fakecm_account
 
24
from mctest import exec_test, create_fakecm_account, get_account_manager
25
25
import constants as cs
26
26
 
27
27
def test(q, bus, mc):
28
28
    # Get the AccountManager interface
29
 
    account_manager = bus.get_object(cs.AM, cs.AM_PATH)
 
29
    account_manager = get_account_manager(bus)
30
30
    account_manager_iface = dbus.Interface(account_manager, cs.AM)
31
31
 
32
32
    # Introspect AccountManager for debugging purpose
45
45
    interfaces = properties.get('Interfaces')
46
46
 
47
47
    # assert that current functionality exists
48
 
    assert cs.AM_IFACE_CREATION_DRAFT in interfaces, interfaces
49
48
    assert cs.AM_IFACE_NOKIA_QUERY in interfaces, interfaces
50
49
 
51
50
    params = dbus.Dictionary({"account": "someguy@example.com",