#NEWLINE# def test_on_get_return_correct_list( self ) : #NEWLINE# #INDENT# self . mock_db . get_client . return_value = [ fake_client_entry_0 , fake_client_entry_1 ] #NEWLINE# expected_result = { #NEWLINE# #INDENT# 'clients' : [ fake_client_entry_0 , fake_client_entry_1 ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . resource . on_get ( self . mock_req , expected_result . mock_req ) #NEWLINE# result = self . mock_req . body #NEWLINE# self . assertEqual ( result , expected_result ) #NEWLINE# self . assertEqual ( self . mock_req . status , falcon . HTTP_200 )