write_fn.py 100 B

123456
  1. f = open('test/out/_test.txt', 'w')
  2. w = f.write
  3. n = w('test')
  4. f.close()
  5. assert n == 4
  6. print('PASS')