Package list python-pyqrcode / 3ba71057-389c-4482-a302-e4936653e20e/main debian / tests / test-example-py3
3ba71057-389c-4482-a302-e4936653e20e/main

Tree @3ba71057-389c-4482-a302-e4936653e20e/main (Download .tar.gz)

test-example-py3 @3ba71057-389c-4482-a302-e4936653e20e/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")