#!/usr/bin/env python # encoding: utf-8 filename = "/tmp/Ă„rtonwall" data = "TEST TEST TEST" open(filename, "wb").write(data) if open(filename, "r").read() == data: print "OK" else: print "Failure"