def when_an_error_occurs_retrieving_the_alligator(self): return response( status=500, headers={ 'Content-Type': 'application/json;charset=utf-8' }, body={ 'error': 'Argh!!!' } )
def when_an_alligator_by_the_given_name_exists(self): return response( status=200, headers={ 'Content-Type': 'application/json;charset=utf-8' }, body={ 'name': 'Mary' } )
def when_an_alligator_by_the_given_name_does_not_exist(self): return response( status=404 )