Python: web2py and Test-driven Development
Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number
Expertise Level
Overview/Description
The web2py framework lets you build scalable, secure, and portable web applications. Testing provides a way to mitigate bugs and errors before the release of Python applications. In this course, you will learn about the web2py framework and the testing frameworks included in Python and their use.
Target Audience
Beginner Python developers, and developers with experience in other languages looking to start programming in Python
Prerequisites
None
Expected Duration (hours)
2.3
Lesson Objectives Python: web2py and Test-driven Development
Start the course
describe the key features of the web2py framework
explore the core concepts of web2py
demonstrate the use of Views in a web2py application
describe how to use the database abstraction layer in a web application
incorporate forms and form validation into a web2py application
send email with web2py
implement authentication and authorization in a web2py application
create and run some basic web2py services
provide an overview of testing in Python
describe the key features of the doctest module
embed a basic doctest in a docstring
use doctest directives and handle raised exceptions in a doctest test
provide an overview of unit testing in Python
install Python Mocker and use it in a unit test
use the unittest framework to run tests on Python code
create and use a unittest test fixture
use the subtest() context manager to distinguish unittest test iterations
use nose to run unit tests on Python application code
perform unit testing of a project with pytest
describe the key features of the Robot framework
perform web automation testing using Robot with the Selenium 2 test library
use unittest module to write and run tests on Python code
Course Number: pg_pyth_a05_it_enus
Expertise Level
Intermediate