From bcbb54f49fad3f4bb3e8e6aca081d9d300e74d2b Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Thu, 8 Sep 2016 16:05:11 +0200 Subject: Function for getting device's serial number in hex. Fixes #33 Signed-off-by: Szczepan Zalega --- unittest/test_bindings.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'unittest') diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py index 2ffa046..eeda247 100644 --- a/unittest/test_bindings.py +++ b/unittest/test_bindings.py @@ -496,3 +496,10 @@ def test_get_status(C): status = C.NK_status() s = gs(status) assert len(s) > 0 + + +def test_get_serial_number(C): + sn = C.NK_device_serial_number() + sn = gs(sn) + assert len(sn) > 0 + print(('Serial number of the device: ', sn)) -- cgit v1.2.1