def test_populate_memory_2(self):
     populate_memory(3)
     self.assert_(access_cache(2) == 2)
     self.assert_(access_cache(3) == 8)
 def test_populate_memory_3(self):
     populate_memory(100)
     self.assert_(access_cache(100) == 26)
     self.assert_(access_cache(99) == 26)
     self.assert_(access_cache(73) == 116)
 def test_populate_memory_1(self):
     populate_memory(10)
     self.assert_(access_cache(1) == 1)