1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

REFACTOR add PEP8-newlines

This commit is contained in:
Patrick Kanzler
2016-04-02 15:29:51 +02:00
parent 7547bfddd2
commit 0121aa0bfb
3 changed files with 7 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ import os
devfile = 'testfile'
def setup_testfile():
"""create a testfile as devfile"""
fhandle = open(devfile, 'a')
@@ -27,10 +28,12 @@ def setup_testfile():
finally:
fhandle.close()
def teardown_testfile():
"""destroy testfile again"""
os.remove(devfile)
@with_setup(setup_testfile, teardown_testfile)
def test_instantiation():
"""test the instantiation of a escpos-printer class and basic printing"""