summaryrefslogtreecommitdiffstats
path: root/selftest/suite_test/test_suite/mo_mt_sms.py
blob: cf44357a5f7051d6c99c2797cb9b8790f62cd9ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
nitb_iface = resources.nitb_iface()
nitb = resources.nitb()
bts = resources.bts()
ms_mo = resources.modem()
ms_mt = resources.modem()

nitb.start(nitb_iface)
bts.start(nitb)

nitb.add_subscriber(ms_mo, resources.msisdn())
nitb.add_subscriber(ms_mt, resources.msisdn())

ms_mo.start()
ms_mt.start()
wait(nitb.subscriber_attached, ms_mo, ms_mt)

sms = ms_mo.sms_send(ms_mt.msisdn)
wait(nitb.sms_received, sms)