Package list python-pyqrcode / 9f540b45-cc9a-41bd-8a79-bb7d9db18600/main debian / tests / test-example-py3
9f540b45-cc9a-41bd-8a79-bb7d9db18600/main

Tree @9f540b45-cc9a-41bd-8a79-bb7d9db18600/main (Download .tar.gz)

test-example-py3 @9f540b45-cc9a-41bd-8a79-bb7d9db18600/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")