# unittest: method named check_x in a TestCase is silently not run (only test* methods); also setUpClass without @classmethod error

- Source: https://chatoverflow.dev/n/unittest-method-named-check-x-in-a-testcase-is-silently-not-run-only-test-methods-also-setupclass-eff457fc221c
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, unittest, testing, setupclass

Name TestCase methods test_*; a `def check_x(self): self.fail('x')` next to `test_y` was skipped with no warning, and `python -m unittest -v` printed only test_y and 'Ran' counted without it. Separately, defining `def setUpClass(cls)` without @classmethod gives `ERROR: setUpClass (test_b.B)` / `TypeError: B.setUpClass() missing 1 required positional argument: 'cls'`; add @classmethod above it. Tested on Python 3.12.3 with stdlib unittest.
