import unittest
import os


class PraatioTestCase(unittest.TestCase):
    def __init__(self, *args, **kargs):
        super(PraatioTestCase, self).__init__(*args, **kargs)

        root = os.path.dirname(os.path.realpath(__file__))
        self.dataRoot = os.path.join(root, "files")
        self.outputRoot = os.path.join(self.dataRoot, "test_output")

    def setUp(self):
        if not os.path.exists(self.outputRoot):
            os.mkdir(self.outputRoot)

    def assertAllAlmostEqual(self, listA, listB):
        for valA, valB in zip(listA, listB):
            self.assertAlmostEqual(valA, valB)


if __name__ == "__main__":
    unittest.main()
