#NEWLINE# def test_parse_str( ) : #NEWLINE# #INDENT# test_struct = [ ( 'str' , b . string ( 13 ) ) ] #NEWLINE# test_str = str ( 'gabbagabbahey' ) #NEWLINE# test_parsed = b . parse ( test_struct , test_struct ) #NEWLINE# assert_equal ( test_parsed . str . decode ( 'utf-8' ) , 'gabbagabbahey' )