#!/usr/bin/env python
# -*- coding: utf-8 -*-

import unittest
import subprocess
import os

class TestAssets(unittest.TestCase):

    def test_all(self):
        script_dir = os.path.dirname(os.path.realpath(__file__))
        tests = ['text1', 'text2', 'unicode']
        for test in tests:
            subprocess.run("../extrakto.py -w < assets/%s.txt | cmp - ./assets/%s_result.txt" %
                (test, test), shell=True, check=True)#, cwd=script_dir)

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

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import unittest
import subprocess
import os

class TestAssets(unittest.TestCase):

    def test_all(self):
        script_dir = os.path.dirname(os.path.realpath(__file__))
        tests = ['text1', 'text2', 'unicode']
        for test in tests:
            subprocess.run("../extrakto.py -w < assets/%s.txt | cmp - ./assets/%s_result.txt" %
                (test, test), shell=True, check=True, cwd=script_dir)

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

fix asset test