How to use the escpos.escpos.Escpos function in escpos

To help you get started, we’ve selected a few escpos examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github python-escpos / python-escpos / test / test_abstract_base_class.py View on Github external
def test_abstract_base_class():
    """ test whether Escpos has the metaclass ABCMeta """
    assert issubclass(escpos.Escpos, object)
    assert type(escpos.Escpos) is ABCMeta
github python-escpos / python-escpos / test / test_abstract_base_class.py View on Github external
def test_abstract_base_class_raises():
    """test whether the abstract base class raises an exception for Escpos"""
    escpos.Escpos()  # This call should raise TypeError because of abstractmethod _raw()