<s> """<STR_LIT>""" <EOL> import struct <EOL> import sys <EOL> class TestCursorVar ( BaseTestCase ) : <EOL> def testBindCursor ( self ) : <EOL> "<STR_LIT>" <EOL> cursor = self . connection . cursor ( ) <EOL> self . failUnlessEqual ( cursor . description , None ) <EOL> self . cursor . execute ( u"""<STR_LIT>""" , <EOL> p_Cursor = cursor ) <EOL> self . failUnlessEqual ( cursor . description , <EOL> [ ( '<STR_LIT>' , cx_Oracle . FIXED_CHAR , <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:1> ) ] ) <EOL> self . failUnlessEqual ( cursor . fetchall ( ) , [ ( '<STR_LIT:X>' , ) ] ) <EOL> def testBindCursorInPackage ( self ) : <EOL> "<STR_LIT>" <EOL> cursor = self . connection . cursor ( ) <EOL> self . failUnlessEqual ( cursor . description , None ) <EOL> self . cursor . callproc ( u"<STR_LIT>" , ( <NUM_LIT:2> , cursor ) ) <EOL> self . failUnlessEqual ( cursor . description , <EOL> [ ( '<STR_LIT>' , cx_Oracle . NUMBER , <NUM_LIT:10> , <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT:0> , <NUM_LIT:0> ) , <EOL> ( '<STR_LIT>' , cx_Oracle . STRING , <NUM_LIT:20> , <NUM_LIT:20> , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ] ) <EOL> self . failUnlessEqual ( cursor . fetchall ( ) , <EOL> [ ( <NUM_LIT:1> , '<STR_LIT>' ) , ( <NUM_LIT:2> , '<STR_LIT>' ) ] ) <EOL> def testFetchCursor ( self ) : <EOL> "<STR_LIT>" <EOL> self . cursor . execute ( u"""<STR_LIT>""" ) <EOL> size = struct . calcsize ( '<STR_LIT:P>' ) <EOL> self . failUnlessEqual ( self . cursor . description , <EOL> [ ( u'<STR_LIT>' , cx_Oracle . NUMBER , <NUM_LIT:10> , <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT:0> , <NUM_LIT:0> ) , <EOL> ( u'<STR_LIT>' , cx_Oracle . CURSOR , - <NUM_LIT:1> , size , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:1> ) ] ) <EOL> for i in range ( <NUM_LIT:1> , <NUM_LIT:11> ) : <EOL> number , cursor = self . cursor . fetchone ( ) <EOL> self . failUnlessEqual ( number , i ) <EOL> self . failUnlessEqual ( cursor . fetchall ( ) , [ ( i + <NUM_LIT:1> , ) ] ) </s>
