COMP1531

4.3 - Web - HTTP Testing

 

Practicing

Write a flask server that:

  • Can have it's state reset via POST
  • Can have a first/last name stored via POST
  • Can get the first/last name via GET
    • Can pass in an optional parameter to get results as uppercase

Write a system test that ensures the server is behaving as necessary.

Full Sample Code

Full sample code can be found in week 5 lectures:

  • server.py
  • server_test.py
Made with Slides.com