def test_loop(self):
        """
        Test looping over an Iterator class.

        @raise AssertionError: If the test fails.
        """
        counter_iterator = self.counter_iterator_class()
        i = 0
        for count in counter_iterator:
            self.assertEquals(i, count)
            i += 1

        Test looping over an Iterator class.

        @raise AssertionError: If the test fails.
        
tests/behavioral_tests/test_iterator.py