python-escpos/test/test_function_dummy_clear.py
2017-11-25 02:31:50 +01:00

9 lines
205 B
Python

from nose.tools import assert_raises
from escpos.printer import Dummy
def test_printer_dummy_clear():
printer = Dummy()
printer.text("Hello")
printer.clear()
assert(printer.output == b'')