#NEWLINE# def test_get_bulk( self ) : #NEWLINE# #INDENT# self . assertTrue ( self . kt_handle . clear ( ) ) #NEWLINE# self . assertTrue ( self . kt_handle . set ( 'a' , 'one' ) ) #NEWLINE# self . assertTrue ( self . kt_handle . set ( 'b' , 'two' ) ) #NEWLINE# self . assertTrue ( self . kt_handle . set ( 'c' , 'three' ) ) #NEWLINE# self . assertTrue ( self . kt_handle . set ( 'd' , 'four' ) ) #NEWLINE# d = self . kt_handle . get_bulk ( [ 'a' , 'b' , 'c' , 'd' ] ) #NEWLINE# assert ( d is not None ) #NEWLINE# self . assertEqual ( d [ 'a' ] , 'one' ) #NEWLINE# self . assertEqual ( d [ 'b' ] , 'two' ) #NEWLINE# self . assertEqual ( d [ 'c' ] , 'three' ) #NEWLINE# self . assertEqual ( d [ 'd' ] , 'four' ) #NEWLINE# self . assertEqual ( len ( d ) , 4 ) #NEWLINE# d = self . kt_handle . get_bulk ( [ 'a' , 'x' , 'y' , 'd' ] ) #NEWLINE# self . assertEqual ( len ( d ) , 2 ) #NEWLINE# d = self . kt_handle . get_bulk ( [ 'w' , 'x' , 'y' , 'z' ] ) #NEWLINE# self . assertEqual ( len ( d ) , 0 ) #NEWLINE# d = self . kt_handle . get_bulk ( [ ] ) #NEWLINE# self . assertEqual ( d , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )