Пример #1
0
    def test_context_manager_overrides_swich_setting(self):
        eq_(gutter.active('foo'), False)

        with switches(foo=True):
            eq_(gutter.active('foo'), True)
Пример #2
0
    def test_context_manager_overrides_swich_setting(self):
        eq_(gutter.active('foo'), False)

        with switches(foo=True):
            eq_(gutter.active('foo'), True)
Пример #3
0
 def without_decorator(self):
     return gutter.active('foo')
Пример #4
0
 def without_decorator(self):
     return gutter.active('foo')