

def setUp(self):
    super(_FilterTestClass, self).setUp()
    fakes.init(self)
    self.msg_runner = fakes.get_message_runner('api-cell')
    self.scheduler = self.msg_runner.scheduler
    self.my_cell_state = self.msg_runner.state_manager.get_my_state()
    self.filter_handler = filters.CellFilterHandler()
    filter_classes = self.filter_handler.get_matching_classes([self.filter_cls_name])
    self.filters = [cls() for cls in filter_classes]
    self.context = context.RequestContext('fake', 'fake', is_admin=True)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/cells/test_cells_filters.py _FilterTestClass.setUp/original