def test_idgenerator_is_generator(self):
        g = IdGenerator()
        self.assertEqual(1, next(g))
        self.assertEqual(2, next(g))
IdGenerator follows the generator protocol
dataset/ETHPy150Open crossbario/autobahn-python/autobahn/test/test_util.py/TestIdGenerator.test_idgenerator_is_generator