Nathan Herring added the comment:
FWIW, it's also pretty easy to write
self.assertEqual({'key': 'value'}, dict(foo))
and get the right behavior, but it'd be nice if it was done automagically by
type checking.
--
___
New submission from Nathan Herring:
We have some code that generates objects that inherit from Mapping that are not
nearly as straightforward to instantiate in a test. It's much easier to have
something like the follows:
foo = … # some collections.Mapping subtype
self.assertEqual(
Nathan Herring added the comment:
You are certainly correct about (some, perhaps many) e-mail generators using
tabs when folding, which is AFAICT, much more likely an incorrect
implementation of RFC 2822 rather than an intentional transformation of the
user's specified Subject line.