aboutsummaryrefslogtreecommitdiffstats
path: root/selftest/sms_test.py
blob: 25fb551c912bd48d313bd67129a2147b84757f7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3

import _prep
from osmo_gsm_tester import ofono_client

print(ofono_client.Sms())
print(ofono_client.Sms())
print(ofono_client.Sms())
sms = ofono_client.Sms('123', '456')
print(str(sms))

sms2 = ofono_client.Sms('123', '456')
print(str(sms2))
assert sms != sms2

sms2.msg = str(sms.msg)
print(str(sms2))
assert sms == sms2

# vim: expandtab tabstop=4 shiftwidth=4