<s> def test ( s ) : <EOL> print '<STR_LIT>' , repr ( s ) , repr ( s . lower ( ) ) , repr ( s . upper ( ) ) , repr ( s . swapcase ( ) ) , repr ( s . capitalize ( ) ) , repr ( s . title ( ) ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> test ( '<STR_LIT>' ) <EOL> var = '<STR_LIT:hello>' <EOL> try : <EOL> var . capitalize ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> var = '<STR_LIT:hello>' <EOL> try : <EOL> var . title ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> try : <EOL> var = '<STR_LIT:hello>' <EOL> var . lower ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> try : <EOL> var = '<STR_LIT:hello>' <EOL> var . upper ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> try : <EOL> var = '<STR_LIT:hello>' <EOL> var . swapcase ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> def test_is ( s ) : <EOL> print '<STR_LIT>' , repr ( s ) , '<STR_LIT>' , s . isalnum ( ) , '<STR_LIT>' , s . isalpha ( ) , '<STR_LIT>' , s . isdigit ( ) , '<STR_LIT>' , s . islower ( ) , '<STR_LIT>' , s . isspace ( ) , '<STR_LIT>' , s . istitle ( ) , '<STR_LIT>' , s . isupper ( ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT:a>' ) <EOL> test_is ( '<STR_LIT:A>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT:abc>' ) <EOL> test_is ( '<STR_LIT:0>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT:U+0020>' ) <EOL> test_is ( '<STR_LIT:\t>' ) <EOL> test_is ( '<STR_LIT:\r>' ) <EOL> test_is ( '<STR_LIT:\n>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> test_is ( '<STR_LIT>' ) <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> c = chr ( i ) <EOL> s = "<STR_LIT>" % c <EOL> if s . title ( ) [ <NUM_LIT:2> ] == '<STR_LIT:b>' : <EOL> print repr ( c ) <EOL> test ( c ) <EOL> test_is ( c ) <EOL> for j in xrange ( i , <NUM_LIT:64> ) : <EOL> test_is ( c + chr ( j ) ) <EOL> try : <EOL> var = '<STR_LIT:abc>' <EOL> var . isalnum ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> try : <EOL> var = '<STR_LIT:abc>' <EOL> var . isalpha ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> try : <EOL> var = '<STR_LIT:abc>' <EOL> var . isdigit ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> try : <EOL> var = '<STR_LIT:abc>' <EOL> var . islower ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> try : <EOL> var = '<STR_LIT:abc>' <EOL> var . isspace ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> try : <EOL> var = '<STR_LIT:abc>' <EOL> var . istitle ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> try : <EOL> var = '<STR_LIT:abc>' <EOL> var . isupper ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> except TypeError : <EOL> print '<STR_LIT>' <EOL> def f ( s ) : <EOL> if s . isalnum ( ) : <EOL> pass <EOL> if s . isalpha ( ) : <EOL> pass <EOL> if s . isdigit ( ) : <EOL> pass <EOL> if s . islower ( ) : <EOL> pass <EOL> if s . isspace ( ) : <EOL> pass <EOL> if s . istitle ( ) : <EOL> pass <EOL> if s . isupper ( ) : <EOL> pass <EOL> f ( "<STR_LIT>" ) <EOL> f ( "<STR_LIT:1>" ) </s>
