Exemplo n.º 1
0
    def test_context_manager_overrides_swich_setting(self):
        eq_(gutter.active('foo'), False)

        with switches(foo=True):
            eq_(gutter.active('foo'), True)
Exemplo n.º 2
0
    def test_context_manager_overrides_swich_setting(self):
        eq_(gutter.active('foo'), False)

        with switches(foo=True):
            eq_(gutter.active('foo'), True)
Exemplo n.º 3
0
 def without_decorator(self):
     return gutter.active('foo')
Exemplo n.º 4
0
 def without_decorator(self):
     return gutter.active('foo')