def testContextSetup(self):
        console.terse("{0}\n".format(self.testContextSetup.__doc__))

        act = self.addEnterDeed("TestOptsSetupMaster")
        self.assertIn(act, self.frame.enacts)
        self.assertEqual(act.actor, "TestOptsSetupMaster")
        act = self.addEnterDeed("SaltRaetManorLaneSetup")
        self.assertIn(act, self.frame.enacts)
        self.assertEqual(act.actor, "SaltRaetManorLaneSetup")
        act = self.addEnterDeed("PresenterTestSetup")
        self.assertIn(act, self.frame.enacts)
        self.assertEqual(act.actor, "PresenterTestSetup")

        act = self.addRecurDeed("SaltRaetPresenter")
        self.assertIn(act, self.frame.reacts)
        self.assertEqual(act.actor, "SaltRaetPresenter")

        self.resolve()  # resolve House, Framer, Frame, Acts, Actors

        self.frame.enter()
        self.assertDictEqual(act.actor.Ioinits,
                             {'opts': '.salt.opts',
                              'presence_req': '.salt.presence.event_req',
                              'lane_stack': '.salt.lane.manor.stack',
                              'alloweds': '.salt.var.presence.alloweds',
                              'aliveds': '.salt.var.presence.aliveds',
                              'reapeds': '.salt.var.presence.reapeds',
                              'availables': '.salt.var.presence.availables'})

        self.assertTrue(hasattr(act.actor, 'opts'))
        self.assertTrue(hasattr(act.actor, 'presence_req'))
        self.assertTrue(hasattr(act.actor, 'lane_stack'))
        self.assertTrue(hasattr(act.actor, 'alloweds'))
        self.assertTrue(hasattr(act.actor, 'aliveds'))
        self.assertTrue(hasattr(act.actor, 'reapeds'))
        self.assertTrue(hasattr(act.actor, 'availables'))
        self.assertIsInstance(act.actor.lane_stack.value, LaneStack)
        self.frame.recur()

        # Close active stacks servers
        act.actor.lane_stack.value.server.close()
        testStack = self.store.fetch('.salt.test.lane.stack')
        if testStack:
            testStack.value.server.close()
Formats an XML document into a string with nice-looking line-breaks (for get_mrf).
dataset/ETHPy150Open saltstack/salt/salt/daemons/test/test_presence.py/PresenterTestCase.testContextSetup--crossover with--dataset/ETHPy150Open nasa-gibs/onearth/src/layer_config/bin/oe_configure_layer.py/get_pretty_xml