def test_uses_gutter_singleton_if_constructed_with_no_gutter(self): ware = EnabledSwitchesMiddleware('app') eq_(ware.gutter, singleton_gutter)
def test_can_be_constructed_with_a_gutter_instance(self): ware = EnabledSwitchesMiddleware('app', 'gutter') ware.gutter = 'gutter'
def test_it_is_constructed_with_an_application(self): ware = EnabledSwitchesMiddleware('app') ware.application = 'app'
def middleware_app(self): return EnabledSwitchesMiddleware(self.signaling_wsgi_app)