Here is a test suite for OpenPGP card. You need to install: $ sudo apt-get install python3-pytest python3-usb Please run test by typing: $ py.test-3 -x test_empty_card.py 000 001 002 010 020 021 030 040 100 101 200 201 202 203 210 211 370 380 490 003