#NEWLINE# def test_appointments_with_search( self ) : #NEWLINE# #INDENT# '\n            Tests PokitDok.appointments lookup using search criteria: appointment_type, start_date, and end_date\n        ' #NEWLINE# with HTTMock ( search_criteria . mock_api_response ) : #NEWLINE# #INDENT# search_criteria = { #NEWLINE# #INDENT# 'appointment_type' : 'AT1' , #NEWLINE# 'start_date' : datetime . date ( 2016 , month = 1 , day = 15 ) , #NEWLINE# 'end_date' : datetime . date ( 2016 , month = 1 , day = 20 ) , #NEWLINE# #UNINDENT# } #NEWLINE# mocked_response = self . pd_client . appointments ( ** search_criteria ) #NEWLINE# #UNINDENT# assert ( mocked_response is not None )