Example #1
0
 def when_an_error_occurs_retrieving_the_alligator(self):
     return response(
         status=500,
         headers={
             'Content-Type': 'application/json;charset=utf-8'
         },
         body={
             'error': 'Argh!!!'
         }
     )
Example #2
0
 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'
         }
     )
Example #3
0
 def when_an_alligator_by_the_given_name_does_not_exist(self):
     return response(
         status=404
     )