Package list python-pyqrcode / 1c77fa1e-ff1c-4d2a-bb23-b6bed144f995/main debian / tests / test-example-py3
1c77fa1e-ff1c-4d2a-bb23-b6bed144f995/main

Tree @1c77fa1e-ff1c-4d2a-bb23-b6bed144f995/main (Download .tar.gz)

test-example-py3 @1c77fa1e-ff1c-4d2a-bb23-b6bed144f995/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")