Example #1
0
    def test_string(self):
        s = 'rather_unlikely'
        q = poke.peek(id(s), 128)

        i = q.find(s)
        assert i >= 0

        poke.poke(id(s) + i, 'abomination...!')
        assert s == 'abomination...!'
Example #2
0
 def test_string_peek(self):
     s = 'rather_unlikely'
     q = poke.peek(id(s), 128)
     assert s in q