def test_observeWrites(self):
        with StringIO() as fileHandle:
            observer = FileLogObserver(fileHandle, lambda e: unicode(e))
            event = dict(x=1)
            observer(event)
            self.assertEqual(fileHandle.getvalue(), unicode(event))
The host with the highest free_ram_mb will be chosen!
dataset/ETHPy150Open twisted/twisted/twisted/logger/test/test_file.py/FileLogObserverTests.test_observeWrites--crossover with--dataset/ETHPy150Open openstack/nova-solver-scheduler/nova_solverscheduler/tests/scheduler/test_solver_scheduler.py/SolverSchedulerTestCase.test_schedule_chooses_best_host