#NEWLINE# def test_get_records( self ) : #NEWLINE# #INDENT# self . _create_model ( ) #NEWLINE# self . db . put_record ( 'modelname' , self . record , [ 'author' ] ) #NEWLINE# records = self . db . get_records ( 'modelname' ) #NEWLINE# self . assertEqual ( len ( records ) , 1 ) #NEWLINE# self . assertIn ( 'id' , records [ 0 ] ) #NEWLINE# del records [ 0 ] [ 'id' ] #NEWLINE# self . assertDictEqual ( records [ 0 ] , { #NEWLINE# #INDENT# 'age' : 7 , #NEWLINE# #UNINDENT# } )