Skip to content

Commit

Permalink
Fix brand mistake. It's actually Teleofis, not Siemens. Add test docs…
Browse files Browse the repository at this point in the history
…tring.
  • Loading branch information
ffix committed Nov 30, 2018
1 parent 8f594f9 commit 4abcc93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_modem.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def writeCallbackFunc(data):
(['FGH,RTY,UIO\r\n', 'OK\r\n'], ['FGH', 'RTY', 'UIO']), # nasty, but possible
# ZTE-like response: do not start with +CLAC, and use multiple lines
(['A\r\n', 'BCD\r\n', 'EFGH\r\n', 'OK\r\n'], ['A', 'BCD', 'EFGH']),
# Siemens response: like ZTE but each command has AT prefix
# Teleofis response: like ZTE but each command has AT prefix
(['AT&F\r\n', 'AT&V\r\n', 'AT&W\r\n', 'AT+CACM\r\n', 'OK\r\n'], ['&F', '&V', '&W', '+CACM']),
# Some Huawei modems have a ZTE-like response, but add an addition \r character at the end of each listed command
(['Q\r\r\n', 'QWERTY\r\r\n', '^DTMF\r\r\n', 'OK\r\n'], ['Q', 'QWERTY', '^DTMF']))
Expand Down
1 change: 1 addition & 0 deletions test/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def test_SimpleOffsetTzInfo(self):
self.assertIsInstance(tz.__repr__(), str)

def test_removeAtPrefix(self):
""" Tests function: removeAtPrefix"""
tests = (('AT+CLAC', '+CLAC'), ('ATZ', 'Z'), ('+CLAC', '+CLAC'), ('Z', 'Z'))
for src, dst in tests:
res = removeAtPrefix(src)
Expand Down

0 comments on commit 4abcc93

Please sign in to comment.