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
def test_resource_smoke(self): IResource(self.session.get_entry_point_resource( wcommon=WebServiceCommon.stub(reactor=the_reactor)))
def test_make_websocket_url_relative(self): wcommon = WebServiceCommon.stub(the_reactor) request = FakeRequest() self.assertRaises( AssertionError, lambda: wcommon.make_websocket_url(request, 'boguspath'))