mirror of
https://github.com/python-escpos/python-escpos
synced 2025-12-02 09:43:30 +00:00
Add Test Function for dummy.clear
This commit is contained in:
8
test/test_function_dummy_clear.py
Normal file
8
test/test_function_dummy_clear.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
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'')
|
||||||
Reference in New Issue
Block a user