Beispiel #1
0
def test_implicit_reset_main():
    other_lookup = object()
    implicit.lookup = other_lookup
    assert implicit.lookup is other_lookup
    assert implicit.lookup is not implicit.base_lookup
    implicit.reset()
    assert implicit.lookup is implicit.base_lookup
Beispiel #2
0
def test_implicit_reset_main():
    other_lookup = object()
    implicit.lookup = other_lookup
    assert implicit.lookup is other_lookup
    assert implicit.lookup is not implicit.base_lookup
    implicit.reset()
    assert implicit.lookup is implicit.base_lookup
Beispiel #3
0
 def f():
     implicit.lookup = other_lookup
     log.append(implicit.lookup)
     implicit.reset()
     log.append(implicit.lookup)
Beispiel #4
0
 def f():
     implicit.lookup = other_lookup
     log.append(implicit.lookup)
     implicit.reset()
     log.append(implicit.lookup)