Skip to content
0/8

Python Advanced: Decorators, Generators and Typing

Context Managers and Testing

In this lesson you will

  • Explain how the with statement works and write a context manager
  • Use contextlib.contextmanager
  • Write tests with assert and unittest