test_fileman.py 204 B

1234567
  1. # coding: utf-8
  2. def test_save_file_from_bytes():
  3. from util import fileman
  4. file_name = 'a/b/c.txt'
  5. new_name = fileman.save_file_from_bytes(b'test', file_name)
  6. assert new_name == file_name