def get_next_token(self, length=15, **kwargs):
        """Gets the next available token.

        :param length: length of the token
        :param kwargs: additional filter criteria to check for when looking for
            a unique token.

        """
        return self.get_available_tokens(count=1,
                                         token_length=length,
                                         **kwargs)[0]
def get_next_token ( self , length = 15 , ** kwargs ) : return self . get_available_tokens ( count = 1 , token_length = length , ** kwargs ) [ 0 ]
Gets the next available token.

        :param length: length of the token
        :param kwargs: additional filter criteria to check for when looking for
            a unique token.