Package list python-pyqrcode / e74e905f-6914-4bd8-8144-08cf4c0de8fd/main debian / tests / test-example-py3
e74e905f-6914-4bd8-8144-08cf4c0de8fd/main

Tree @e74e905f-6914-4bd8-8144-08cf4c0de8fd/main (Download .tar.gz)

test-example-py3 @e74e905f-6914-4bd8-8144-08cf4c0de8fd/mainraw · history · blame

#!/usr/bin/env python3

import pyqrcode
import os.path

qr = pyqrcode.create('Unladden swallow')
qr.png('famous-joke.png', scale=5)

if not os.path.exists("famous-joke.png"):
    raise("missing file")