1. Home
  2. Data Science
  3. Python
  4. What is the naming convention for unittest test methods in…

Added 25 Nov 2026

What is the naming convention for unittest test methods in Python?

  1. They end with _test only
  2. They start with test Correct answer
  3. They start with check
  4. They have no convention

Correct answer

B. They start with test

9 views

MCQSEXAM

Explanation

unittest discovers methods whose names begin with test.

Reference

Asked in: Python Interview Standard Library

https://docs.python.org/3/library/index.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs