#!/usr/bin/python

import escpos.printer as printer
import pytest


def test_soft_barcode():
    """just execute soft_barcode
    """
    instance = printer.Dummy()
    instance.soft_barcode("ean8", "1234")


#!/usr/bin/python

import escpos.printer as printer
import pytest


@pytest.fixture
def instance():
    return printer.Dummy()


def test_soft_barcode_ean8(instance):
    instance.soft_barcode("ean8", "1234")


use pytest fixture