<s> """<STR_LIT>""" <EOL> try : <EOL> import array <EOL> except ImportError : <EOL> array = None <EOL> import unittest <EOL> import pyamf <EOL> class ArrayTestCase ( unittest . TestCase ) : <EOL> """<STR_LIT:U+0020>""" <EOL> def setUp ( self ) : <EOL> if not array : <EOL> self . skipTest ( "<STR_LIT>" ) <EOL> self . orig = [ '<STR_LIT:f>' , '<STR_LIT:o>' , '<STR_LIT:o>' ] <EOL> self . obj = array . array ( '<STR_LIT:c>' ) <EOL> self . obj . append ( '<STR_LIT:f>' ) <EOL> self . obj . append ( '<STR_LIT:o>' ) <EOL> self . obj . append ( '<STR_LIT:o>' ) <EOL> def encdec ( self , encoding ) : <EOL> return pyamf . decode ( pyamf . encode ( self . obj , encoding = encoding ) , <EOL> encoding = encoding ) . next ( ) <EOL> def test_amf0 ( self ) : <EOL> self . assertEqual ( self . encdec ( pyamf . AMF0 ) , self . orig ) <EOL> def test_amf3 ( self ) : <EOL> self . assertEqual ( self . encdec ( pyamf . AMF3 ) , self . orig ) </s>
