def test_stop_iteration(self):
        """
        Test that stop iteration is raised.

        @raise AssertionError: If the test fails.
        """
        counter_iterator = self.counter_iterator_class()

        with self.assertRaises(StopIteration):
            for i in range(12):
                next(counter_iterator)

        Test that stop iteration is raised.

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