Exemplo n.º 1
0
    def test_unbind_unbinds_from_initial_values(self):
        """
        It's possible to unbind a value that came from initial_values.
        """
        p = BoundLoggerLazyProxy(None, initial_values={"a": 1, "b": 2})
        b = p.unbind("a")

        assert {"b": 2} == b._context
Exemplo n.º 2
0
 def test_unbind_unbinds_from_initial_values(self):
     p = BoundLoggerLazyProxy(None, initial_values={"a": 1, "b": 2})
     b = p.unbind("a")
     assert {"b": 2} == b._context
Exemplo n.º 3
0
 def test_unbind_unbinds_from_initial_values(self):
     p = BoundLoggerLazyProxy(None, initial_values={"a": 1, "b": 2})
     b = p.unbind("a")
     assert {"b": 2} == b._context
Exemplo n.º 4
0
 def test_unbind_unbinds_from_initial_values(self):
     p = BoundLoggerLazyProxy(None, initial_values={'a': 1, 'b': 2})
     b = p.unbind('a')
     assert {'b': 2} == b._context
Exemplo n.º 5
0
 def test_unbind_unbinds_from_initial_values(self):
     p = BoundLoggerLazyProxy(None, initial_values={'a': 1, 'b': 2})
     b = p.unbind('a')
     assert {'b': 2} == b._context