aboutsummaryrefslogtreecommitdiffstats
path: root/suites/sms/mo_mt_sms.py
diff options
context:
space:
mode:
Diffstat (limited to 'suites/sms/mo_mt_sms.py')
-rwxr-xr-xsuites/sms/mo_mt_sms.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/suites/sms/mo_mt_sms.py b/suites/sms/mo_mt_sms.py
new file mode 100755
index 0000000..7176197
--- /dev/null
+++ b/suites/sms/mo_mt_sms.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python3
+from osmo_gsm_tester.test import *
+
+print('use resources...')
+nitb = suite.nitb()
+bts = suite.bts()
+ms_mo = suite.modem()
+ms_mt = suite.modem()
+
+print('start nitb and bts...')
+nitb.bts_add(bts)
+nitb.start()
+sleep(1)
+assert nitb.running()
+bts.start()
+
+nitb.subscriber_add(ms_mo)
+nitb.subscriber_add(ms_mt)
+
+ms_mo.connect(nitb)
+ms_mt.connect(nitb)
+print(ms_mo.properties())
+print(ms_mt.properties())
+wait(nitb.subscriber_attached, ms_mo, ms_mt)
+
+sms = ms_mo.sms_send(ms_mt.msisdn)
+wait(ms_mt.sms_was_received, sms)