summaryrefslogtreecommitdiffstats
path: root/test/test_otultra2.py
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-08-03 17:29:24 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-08-03 17:29:24 +0200
commitc2c6ead4babf9dbcb354e1c07b081913ed648981 (patch)
tree8525098bd911b540077b46057bb28cd88de0dc85 /test/test_otultra2.py
parentAdd utf-8 encoding specification to all files. (diff)
downloadglucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar
glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar.gz
glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar.bz2
glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar.lz
glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar.xz
glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.tar.zst
glucometerutils-c2c6ead4babf9dbcb354e1c07b081913ed648981.zip
Diffstat (limited to 'test/test_otultra2.py')
-rw-r--r--test/test_otultra2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_otultra2.py b/test/test_otultra2.py
index ca65f99..ba577c3 100644
--- a/test/test_otultra2.py
+++ b/test/test_otultra2.py
@@ -31,26 +31,26 @@ class TestOTUltra2(unittest.TestCase):
self.mock_readline.return_value = bytes('INVALID', 'ascii')
self.assertRaises(otultra2.MissingChecksum,
- self.device.GetSerialNumber)
+ self.device.get_serial_number)
def testShortResponse(self):
self.mock_readline.return_value = bytes('.\r', 'ascii')
self.assertRaises(exceptions.InvalidResponse,
- self.device.GetSerialNumber)
+ self.device.get_serial_number)
def testInvalidResponse(self):
self.mock_readline.return_value = bytes('% 1337\r', 'ascii')
self.assertRaises(exceptions.InvalidResponse,
- self.device.GetSerialNumber)
+ self.device.get_serial_number)
def testInvalidSerialNumber(self):
self.mock_readline.return_value = bytes(
'@ "12345678O" 1337\r', 'ascii')
self.assertRaises(otultra2.InvalidSerialNumber,
- self.device.GetSerialNumber)
+ self.device.get_serial_number)
if __name__ == '__main__':
unittest.main()