def write_test_files(test_dir, names=None):
    names = names or range(10)
    for i in names:
        with open(os.path.join(test_dir, str(i)), 'wb') as out:
            out.write(''.encode('UTF-8'))
Write test files in test_dir using the names list.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/tests/contrib_tests.py/write_test_files