Package list python-pyqrcode / d3243a17-456b-49e5-a49f-f60cf5d556eb/main debian / tests / test-example-py3
d3243a17-456b-49e5-a49f-f60cf5d556eb/main

Tree @d3243a17-456b-49e5-a49f-f60cf5d556eb/main (Download .tar.gz)

test-example-py3 @d3243a17-456b-49e5-a49f-f60cf5d556eb/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")