Courseiva
Software TestinghardMultiple SelectObjective-mapped

PCPP2 Software Testing Practice Question

Which TWO of the following are true regarding 'unittest' test suites?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Test classes must inherit from unittest.TestCase.

Suites can be built using TestLoader, and tests are aggregated from classes inheriting from unittest.TestCase.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Test classes must inherit from unittest.TestCase.

    Why this is correct

    Inheritance is required for the framework to pick up the tests.

  • All test methods must start with the word 'test'.

    Why this is correct

    This is the default naming requirement for unittest.

  • Fixtures must be named 'setUp' and 'tearDown'.

    Why it's wrong here

    These are only two of the possible methods; others like setUpClass exist.

  • You cannot run unittest from the command line.

    Why it's wrong here

    It is natively supported via python -m unittest.

  • Test suites are limited to 10 tests each.

    Why it's wrong here

    There is no such limit.

About these practice questions

One of 194 original PCPP2 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Python Institute exam blueprint

This PCPP2 practice question is part of Courseiva's free Python Institute certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCPP2 exam.