
Python 2.7 EOL is arriving on 2020-01-01: https://pythonclock.org/ This will allow us to use Python 3 only libraries, like python-barcode, which can maintain a reduced, simpler codebase, due to only one version to support. Closes #371. Signed-off-by: Romain Porte <microjoe@microjoe.org>
14 lines
304 B
Python
14 lines
304 B
Python
|
|
import six
|
|
|
|
import escpos.printer as printer
|
|
from escpos.constants import GS
|
|
|
|
|
|
def test_cut_without_feed():
|
|
"""Test cut without feeding paper"""
|
|
instance = printer.Dummy()
|
|
instance.cut(feed=False)
|
|
expected = GS + b'V' + six.int2byte(66) + b'\x00'
|
|
assert(instance.output == expected)
|