Example #1
0
 def test_is_likely_virtual(self):
     h = HeapCache()
     h.new(box1)
     assert h.is_unescaped(box1)
     assert h.is_likely_virtual(box1)
     h.reset(reset_virtuals=False)
     assert not h.is_unescaped(box1)
     assert h.is_likely_virtual(box1)
     h._escape(box1)
     assert not h.is_unescaped(box1)
     assert not h.is_likely_virtual(box1)