Package list python-pyqrcode / e9527eb debian / tests / test-example-py3
e9527eb

Tree @e9527eb (Download .tar.gz)

test-example-py3 @e9527ebraw · 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")