python-escpos/test/test_functions/test_function_cut.py

11 lines
294 B
Python
Raw Normal View History

import escpos.printer as printer
from escpos.constants import GS
def test_cut_without_feed() -> None:
"""Test cut without feeding paper"""
instance = printer.Dummy()
instance.cut(feed=False)
expected = GS + b"V" + bytes((66,)) + b"\x00"
2021-10-30 16:15:22 +00:00
assert instance.output == expected