예제 #1
0
 def setUp(self):
     """
     Sets up the test environment
     """
     # Start a framework
     self.framework = create_framework(['pelix.http.basic'])
     self.framework.start()
     self.ipopo = install_ipopo(self.framework)
     self.http = instantiate_server(self.ipopo)
예제 #2
0
    def setUp(self):
        """
        Sets up the test environment
        """
        # Start a framework
        self.framework = FrameworkFactory.get_framework()
        self.framework.start()

        # Install iPOPO
        self.ipopo = install_ipopo(self.framework)

        # Install HTTP service
        install_bundle(self.framework, "pelix.http.basic")

        # Install test bundle
        self.servlets = install_bundle(self.framework,
                                       "tests.http.servlets_bundle")