2016-02-10 18:32:00 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
"""very basic test cases that load the classes
|
|
|
|
|
2023-08-14 23:03:36 +00:00
|
|
|
:author: `Patrick Kanzler <dev@pkanzler.de>`_
|
2016-02-11 17:37:13 +00:00
|
|
|
:organization: `python-escpos <https://github.com/python-escpos>`_
|
2016-02-10 18:32:00 +00:00
|
|
|
:copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_
|
2017-01-29 23:39:43 +00:00
|
|
|
:license: MIT
|
2016-02-10 18:32:00 +00:00
|
|
|
"""
|
|
|
|
|
2016-03-02 22:16:58 +00:00
|
|
|
|
2016-02-10 18:32:00 +00:00
|
|
|
import escpos.printer as printer
|
|
|
|
|
2016-04-02 13:29:51 +00:00
|
|
|
|
2023-12-17 00:15:59 +00:00
|
|
|
def test_instantiation() -> None:
|
2016-02-10 18:32:00 +00:00
|
|
|
"""test the instantiation of a escpos-printer class and basic printing"""
|
2017-05-21 22:44:22 +00:00
|
|
|
instance = printer.Dummy()
|
2021-10-30 16:15:22 +00:00
|
|
|
instance.text("This is a test\n")
|