Exemplo n.º 1
0
 def test_burn_method_zeroes__string(self):
     ss = SecureString("of all the things I've lost, I miss my mind the most")
     ctuple = learn_mem(ss._string)
     ss.burn()
     gc.collect()
     result = get_from_mem(ctuple)
     assert result.find('things') == -1
     assert result.find('lost') == -1
 def test_burn_method_zeroes__string(self):
     ss = SecureString(
         "of all the things I've lost, I miss my mind the most")
     ctuple = learn_mem(ss._string)
     ss.burn()
     gc.collect()
     result = get_from_mem(ctuple)
     self.assertNotIn(b'things', result)
     self.assertNotIn(b'lost', result)