Example #1
0
 def test_uses_gutter_singleton_if_constructed_with_no_gutter(self):
     ware = EnabledSwitchesMiddleware('app')
     eq_(ware.gutter, singleton_gutter)
Example #2
0
 def test_can_be_constructed_with_a_gutter_instance(self):
     ware = EnabledSwitchesMiddleware('app', 'gutter')
     ware.gutter = 'gutter'
Example #3
0
 def test_it_is_constructed_with_an_application(self):
     ware = EnabledSwitchesMiddleware('app')
     ware.application = 'app'
Example #4
0
 def middleware_app(self):
     return EnabledSwitchesMiddleware(self.signaling_wsgi_app)
Example #5
0
 def test_can_be_constructed_with_a_gutter_instance(self):
     ware = EnabledSwitchesMiddleware('app', 'gutter')
     ware.gutter = 'gutter'
Example #6
0
 def test_it_is_constructed_with_an_application(self):
     ware = EnabledSwitchesMiddleware('app')
     ware.application = 'app'