
def test_write_bytes():
  path = "./tests/fixtures/bytes"

  write(random_bytes, path)
  content = io.open(path, 'rb').read()

  assert os.path.isfile(path)
  assert content == random_bytes


def test_write_handle_text():
  text = u"The quick brown 🦊 jumps over the lazy dog"
  path = "./tests/fixtures/string2.txt"
