<s> from copperhead import * <EOL> import unittest <EOL> @ cu <EOL> def dismantle ( ( x , ( y , z ) ) ) : <EOL> return x <EOL> @ cu <EOL> def tuple_inline_test ( x ) : <EOL> return dismantle ( ( x , ( x , x ) ) ) <EOL> class TupleInlineTest ( unittest . TestCase ) : <EOL> def testTupleInline ( self ) : <EOL> self . assertEqual ( tuple_inline_test ( <NUM_LIT:2> ) , <NUM_LIT:2> ) <EOL> @ cu <EOL> def rebind_test ( x ) : <EOL> y = [ xi + <NUM_LIT:1> for xi in x ] <EOL> z = y <EOL> return z <EOL> class RebindTest ( unittest . TestCase ) : <EOL> def testRebind ( self ) : <EOL> self . assertEqual ( list ( rebind_test ( [ <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:2> ] ) ) , <EOL> [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> ] ) <EOL> @ cu <EOL> def inline_closure_literal_test ( x , y ) : <EOL> def my_add ( a , b ) : <EOL> return a + b <EOL> def my_closure ( a ) : <EOL> return my_add ( a , y ) <EOL> return my_closure ( x ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
