[issue21589] Use better idiom in unittest example

2014-05-27 Thread Ezio Melotti
Ezio Melotti added the comment: This is a duplicate of #11468. -- nosy: +ezio.melotti, rhettinger resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Improve unittest basic example in the doc ___ Python tracker

[issue21589] Use better idiom in unittest example

2014-05-27 Thread Claudiu.Popa
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@python components: Documentation files: unittest_better_