mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
25 lines
504 B
Python
Executable File
25 lines
504 B
Python
Executable File
import os
|
|
import shutil
|
|
import sys
|
|
import unittest
|
|
|
|
# sys.path.insert(1, '../')
|
|
from lib.pyShelf import InitFiles
|
|
|
|
|
|
class SysIoTest(unittest.TestCase):
|
|
|
|
def test_sysio_InitFiles(self):
|
|
file_array = ["temp/test_file_1", "temp/test_file_2"]
|
|
InitFiles(file_array)
|
|
self.assertTrue(os.path.isfile(file_array[0]))
|
|
|
|
def tearDown(self):
|
|
try:
|
|
shutil.rmtree("temp")
|
|
except Exception as e:
|
|
pass
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|