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