Package list python-pyqrcode / 61883f26-1d35-48bb-95b6-43ad4e5b6ece/main debian / tests / test-example-py3
61883f26-1d35-48bb-95b6-43ad4e5b6ece/main

Tree @61883f26-1d35-48bb-95b6-43ad4e5b6ece/main (Download .tar.gz)

test-example-py3 @61883f26-1d35-48bb-95b6-43ad4e5b6ece/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")