python-escpos/test/test_functions/test_function_dummy_clear.py

9 lines
176 B
Python

from escpos.printer import Dummy
def test_printer_dummy_clear() -> None:
printer = Dummy()
printer.text("Hello")
printer.clear()
assert printer.output == b""