def next(self):

        token = self.nextToken()
        if token is None or token.type == EOF:
            raise StopIteration
        return token
Test that a CryptographyEngine can be constructed.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/antlr3/antlr3/recognizers.py/TokenSource.next--crossover with--dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/services/server/crypto/test_engine.py/TestCryptographyEngine.test_init