old_contents: #!/usr/bin/env python3
  
  import unittest
  
  import lazylist
  
  class TestGetItem(unittest.TestCase):
      def test_incremental(self):
          range_size = 10
          lazy = lazylist.List(range(range_size))
          for i in range(range_size):
              lazy[i]
              self.assertEqual(len(lazy._list), i + 1)
          self.assertEqual(len(lazy), range_size)
          for a, b in zip(lazy._list, range(range_size)):
              self.assertEqual(a, b)
              
  
      def test_all_at_once(self):
          range_size = 10
          lazy = lazylist.List(range(range_size))
          lazy[range_size - 1]
          self.assertEqual(len(lazy._list), range_size)
  
  
  class TestSetItem(unittest.TestCase):
      def test_zero_out(self):
          range_size = 10
          lazy = lazylist.List(range(range_size))
          for i in range(range_size):
              lazy[i] = 0
          for i in range(range_size):
              self.assertEqual(lazy[i], 0)
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: #!/usr/bin/env python3
  
  import unittest
  
  import lazylist
  
  class TestGetItem(unittest.TestCase):
      def test_incremental(self):
          range_size = 10
          lazy = lazylist.List(range(range_size))
          for i in range(range_size):
              lazy[i]
              self.assertEqual(len(lazy._list), i + 1)
          self.assertEqual(len(lazy), range_size)
          for a, b in zip(lazy._list, range(range_size)):
              self.assertEqual(a, b)
              
  
      def test_all_at_once(self):
          range_size = 10
          lazy = lazylist.List(range(range_size))
          lazy[range_size - 1]
          self.assertEqual(len(lazy._list), range_size)
  
  
  class TestSetItem(unittest.TestCase):
      def test_zero_out(self):
          range_size = 10
          lazy = lazylist.List(range(range_size))
          for i in range(range_size):
              lazy[i] = 0
          for i in range(range_size):
              self.assertEqual(lazy[i], 0)
  
  
  class TestDelItem(unittest.TestCase):
      def test_remove_middle(self):
          range_size = 10
          lazy = lazylist.List(range(range_size))
          del lazy[4]
          self.assertEqual(lazy[3] + 2, lazy[4])
  
  if __name__ == '__main__':
      unittest.main()
  
subject: test delitem