<Unit Testing using Unittest in Python | 1-day course | PCWorkshops.

Python UnitTest Course

Our 1-day Python Unit Testing and Automated Testing Course provides practical, instructor-led training in testing Python applications using the built-in unittest framework.

Python UnitTest Course Description

Our 1-day Python Unit Testing and Automated Testing Course provides practical, instructor-led training in testing Python applications using the built-in unittest framework. You will learn how to create and run unit tests, use assertions, discover tests automatically, test exceptions and handle common testing scenarios. The course also introduces doctest, pytest and Nose, giving Python developers a broader understanding of automated testing approaches. With hands-on exercises, practical examples and a maximum group size of four, the course is designed to help developers build more reliable, maintainable and testable Python software.

Unit testing is an essential part of professional Python development because it helps developers identify errors early, before software reaches production. Automated testing makes it possible to run tests repeatedly and consistently, while regression testing helps ensure that existing functionality continues to work when code is changed or new features are added. This course explores Python's built-in unittest framework alongside popular alternatives such as pytest, helping developers understand when and how to use each approach. You will also learn how effective testing supports maintainable Python code and how test-driven development (TDD) can be used to build more reliable software from the outset.

Who should attend the Python UnitTest Course?

You have some prior Python knowledge or experience and want to find out how to test your units.

Python UnitTest Course Details

Our Style: Hands-on, Practical
Location: Online, Instructor-led
Download: anaconda.com and Unittest
Duration: 1 Day
Times: Check at the booking link

Python UnitTest Course Outline

Python UnitTest Framework

UnitTest Framework - Home
UnitTest Framework - Overview
UnitTest - Framework
UnitTest - API

Python UnitTest Assertions

Learn how to use assertions to verify expected results and identify failures in Python code.

Python UnitTest Test Discovery

Learn how unittest discovers and runs test cases automatically.
UnitTest - Skip Test

Testing Exceptions in Python

Learn how to test code that is expected to raise exceptions and verify that errors are handled correctly.
UnitTest - Exceptions Test

Python Unit Testing Frameworks and Tools

UnitTest - Time Test
UnitTest - Unittest2
UnitTest - Signal Handling
UnitTest - Doctest
UnitTest - Doctest API
UnitTest - Py.test Module
Nose Testing - Framework
Nose Testing - Tools

Book the Python course

Customise Python Courses

Powered byEMF HTML Contact Form

Where is our London Classroom

Golden Cross House, 8 Duncannon Street, London, WC2n 4JF

More About Our Python Courses

Instructor-led Experienced Python trainers adapt to audience and address questions directly, delivering directly, live.
Live online, London Classroom, or Onsite Normally we teach online, instructor-led. You can arrange Python training onsite or in the London classroom by emailing us about it.
Practical Python Course All Python skills are illustrated and thoroughly practiced with comprehensive, explanatory, practical exercises.
Personlised Python Courses Courses are fully customisable with relevant sample data via pre-course arrangement. The maximum number of delegates per group is 4.

Contact PCWorkshops