[New-bugs-announce] [issue21589] Use better idiom in unittest example

Claudiu.Popa report at bugs.python.org
Tue May 27 14:22:37 CEST 2014


New submission from Claudiu.Popa:

Hello.

This patch proposes using `assertIn` in the first unittest example, instead of `assertTrue(x in seq)`. This is clearer and recommending it first is better for beginners.

----------
assignee: docs at python
components: Documentation
files: unittest_better_idiom.patch
keywords: patch
messages: 219216
nosy: Claudiu.Popa, docs at python
priority: normal
severity: normal
status: open
title: Use better idiom in unittest example
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file35378/unittest_better_idiom.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21589>
_______________________________________


More information about the New-bugs-announce mailing list