path: root/selftest
diff options
authorPau Espin Pedrol <pespin@sysmocom.de>2017-05-30 15:13:29 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-05-31 16:14:08 +0200
commit996651a3a3e451d978a017f964bacccc0c19ed0f (patch)
tree3de663889c8836b23efe8cf4d052bd23c344256f /selftest
parentb8011695b8c771f157d83de3239cfd6ecf2e967f (diff)
Move Sms class to a separate module
Preparation for following commits to add smpp support, as we will have a class SmppClient with a method accepting an Sms object to send it. Change-Id: I1f28e14e963abb64df687b69d54975be2aeb0d0d
Diffstat (limited to 'selftest')
1 files changed, 12 insertions, 12 deletions
diff --git a/selftest/sms_test.py b/selftest/sms_test.py
index 25fb551..ce81c3e 100755
--- a/selftest/sms_test.py
+++ b/selftest/sms_test.py
@@ -1,20 +1,20 @@
#!/usr/bin/env python3
import _prep
-from osmo_gsm_tester import ofono_client
+from osmo_gsm_tester import sms
-sms = ofono_client.Sms('123', '456')
+msg = sms.Sms('123', '456')
-sms2 = ofono_client.Sms('123', '456')
-assert sms != sms2
+msg2 = sms.Sms('123', '456')
+assert msg != msg2
-sms2.msg = str(sms.msg)
-assert sms == sms2
+msg2.msg = str(msg.msg)
+assert msg == msg2
# vim: expandtab tabstop=4 shiftwidth=4