Пример #1
0
 def setUp(self):
     wcommon = WebServiceCommon.stub(reactor=the_reactor)
     self.obj = StateSpecimen()
     r = BlockResource(self.obj, wcommon, None)
     self.port = the_reactor.listenTCP(0,
                                       SiteWithDefaultHeaders(r),
                                       interface="127.0.0.1")  # pylint: disable=no-member
Пример #2
0
 def test_resource_smoke(self):
     IResource(self.session.get_entry_point_resource(
         wcommon=WebServiceCommon.stub(reactor=the_reactor)))
Пример #3
0
 def setUp(self):
     wcommon = WebServiceCommon.stub(reactor=the_reactor)
     self.obj = StateSpecimen()
     r = BlockResource(self.obj, wcommon, None)
     self.port = the_reactor.listenTCP(0, SiteWithDefaultHeaders(r), interface="127.0.0.1")  # pylint: disable=no-member
Пример #4
0
 def test_make_websocket_url_relative(self):
     wcommon = WebServiceCommon.stub(the_reactor)
     request = FakeRequest()
     self.assertRaises(
         AssertionError,
         lambda: wcommon.make_websocket_url(request, 'boguspath'))
Пример #5
0
 def test_resource_smoke(self):
     IResource(self.session.get_entry_point_resource(
         wcommon=WebServiceCommon.stub(reactor=the_reactor)))