def test_error(self):
        f = makeFailure()
        self.observer.gotEvent({'message': (),
                                'time': time.time(), 'isError': 1,
                                'system': '-', 'failure': f,
                                'why': None})
        self.assertEqual(self.observer.getErrors(), [f])
Gets the management lock of a scope.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/test/test_log.py/TestObserver.test_error--crossover with--dataset/ETHPy150Open Azure/azure-sdk-for-python/azure-mgmt-resource/azure/mgmt/resource/locks/operations/management_locks_operations.py/ManagementLocksOperations.get