parameters: (self, expr)
return_statement: return False
docstring: Test a token against a token expression.  This can either be a
          token type or ``'token_type:token_value'``.  This can only test
          against string values and types.
docstring_summary: Test a token against a token expression.  This can either be a
          token type or ``'token_type:token_value'``.  This can only test
          against string values and types.
docstring_tokens: Test a token against a token expression . This can either be a token type or token_type : token_value . This can only test against string values and types .
function: def test(self, expr):
          """Test a token against a token expression.  This can either be a
          token type or ``'token_type:token_value'``.  This can only test
          against string values and types.
          """
          # here we do a regular string equality check as test_any is usually
          # passed an iterable of not interned strings.
          if self.type == expr:
              return True
          elif ':' in expr:
              return expr.split(':', 1) == [self.type, self.value]
          return False
function_tokens: def test ( self , expr ) : # here we do a regular string equality check as test_any is usually # passed an iterable of not interned strings. if self . type == expr : return True elif ':' in expr : return expr . split ( ':' , 1 ) == [ self . type , self . value ] return False