# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
"""
Performs some tests with pyBarcode. All created barcodes where saved in the
tests subdirectory with a tests.html to watch them.
"""
__docformat__ = 'restructuredtext en'
import codecs
import os
import sys
import unittest
from barcode import get_barcode, get_barcode_class, version
try:
from barcode.writer import ImageWriter
except ImportError:
ImageWriter = None # lint:ok
PATH = os.path.dirname(os.path.abspath(__file__))
TESTPATH = os.path.join(PATH, 'tests')
HTMLFILE = os.path.join(TESTPATH, 'index.html')
HTML = """
pyBarcode {version} Test