def test_is_memoized(self):
    it = iter(range(20, 30))
    p = mlazy(nextfun(it))
    self.assertEqual(p(), 20)
    self.assertTrue(p.evaluated)
    self.assertEqual(p(), 20)
    self.assertEqual(repr(p), '20')
def test_is_memoized(self):
    it = iter(range(20, 30))
    p = mlazy(nextfun(it))
    self.assertEqual(p(), 20)
    self.assertTrue(p.evaluated)
    self.assertEqual(p(), 20)
    self.assertEqual(repr(p), '20')