2017-07-23 09:11:22 +00:00
|
|
|
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)
|
2021-10-30 16:15:22 +00:00
|
|
|
expected = GS + b"V" + six.int2byte(66) + b"\x00"
|
|
|
|
assert instance.output == expected
|