#NEWLINE# def testGetItem( self ) : #NEWLINE# #INDENT# query = 'SELECT * FROM raw_query_author ORDER BY id ASC' #NEWLINE# third_author = Author . objects . raw ( query ) [ 2 ] #NEWLINE# self . assertEqual ( third_author . first_name , 'Bob' ) #NEWLINE# first_two = Author . objects . raw ( query ) [ 0 : 2 ] #NEWLINE# self . assertEqual ( len ( first_two ) , 2 ) #NEWLINE# self . assertRaises ( TypeError , ( lambda : Author . objects . raw ( query ) [ 'test' ] ) )