<s> '''<STR_LIT>''' <EOL> import random <EOL> import types <EOL> import _10gen <EOL> random . seed ( ) <EOL> binary = '<STR_LIT>' . join ( [ chr ( x ) for x in random . sample ( xrange ( <NUM_LIT> ) , <NUM_LIT> ) ] ) <EOL> assert isinstance ( binary , types . StringType ) <EOL> _10gen . binary = binary <EOL> _10gen . local . src . test . ed . lang . python . binary1_helper ( ) <EOL> assert isinstance ( _10gen . binary2 , types . UnicodeType ) <EOL> out = _10gen . binary2 . encode ( '<STR_LIT>' ) <EOL> assert binary == out </s>
