def test_observeFailure(self):
        with StringIO() as fileHandle:
            observer = FileLogObserver(fileHandle, lambda e: unicode(e))

            try:
                1 / 0
            except ZeroDivisionError:
                failure = Failure()

            event = dict(log_failure=failure)
            observer(event)
            output = fileHandle.getvalue()
            self.assertTrue(
                output.startswith("{0}\nTraceback ".format(unicode(event))),
                "Incorrect output:\n{0}".format(output)
            )
Sets the permission to the ``perm`` value. Same as revoking all privileges
dataset/ETHPy150Open twisted/twisted/twisted/logger/test/test_file.py/FileLogObserverTests.test_observeFailure--crossover with--dataset/ETHPy150Open callowayproject/django-objectpermissions/objectpermissions/registration.py/set_object_perm