#NEWLINE# def test_basic( self ) : #NEWLINE# #INDENT# self . assertEqual ( list ( [ ] ) , [ ] ) #NEWLINE# l0_3 = [ 0 , 1 , 2 , 3 ] #NEWLINE# l0_3_bis = list ( l0_3 ) #NEWLINE# self . assertEqual ( l0_3 , l0_3_bis ) #NEWLINE# self . assertTrue ( ( l0_3 is not l0_3_bis ) ) #NEWLINE# self . assertEqual ( list ( ( ) ) , [ ] ) #NEWLINE# self . assertEqual ( list ( ( 0 , 1 , 2 , 3 ) ) , [ 0 , 1 , 2 , 3 ] ) #NEWLINE# self . assertEqual ( list ( '' ) , [ ] ) #NEWLINE# self . assertEqual ( list ( 'spam' ) , [ 's' , 'p' , 'a' , 'm' ] ) #NEWLINE# if ( sys . maxsize == 2147483647 ) : #NEWLINE# #INDENT# self . assertRaises ( MemoryError , list , range ( ( sys . maxsize // 2 ) ) ) #NEWLINE# #UNINDENT# x = [ ] #NEWLINE# x . extend ( ( ( - y ) for y in x ) ) #NEWLINE# self . assertEqual ( y , [ ] )