1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Testing in Python

Connected

Exercise

The first test suite

In this exercise, you will write the first test suite that includes the types of tests that you have learned using the pytest library.

The function multiple_of_two checks whether the num is a multiple of 2 or not. You will implement and run two regular assert tests.

The pytest package has already been imported.

Instructions 1/2

undefined XP
    1
    2
  • Write an assert statement that is expected to be True.