'Set up test fixtures.'

def setUp(self):

    setup_daemon_context_fixtures(self)
    self.test_files = {2: FakeFileDescriptorStringIO(), 5: 5, 11: FakeFileDescriptorStringIO(), 17: None, 23: FakeFileDescriptorStringIO(), 37: 37, 42: FakeFileDescriptorStringIO()}
    for (fileno, item) in self.test_files.items():
        if hasattr(item, '_fileno'):
            item._fileno = fileno
    self.test_file_descriptors = set((fd for (fd, item) in self.test_files.items() if (item is not None)))
    self.test_file_descriptors.update((self.stream_files_by_name[name].fileno() for name in ['stdin', 'stdout', 'stderr']))
