Author gregory.p.smith
Recipients benjamin.peterson, giampaolo.rodola, gpolo, gregory.p.smith, gvanrossum, pitrou, pupeno, purcell, rhettinger
Date 2009-03-29.01:46:49
SpamBayes Score 0.000961986
Marked as misclassified No
Message-id <>
Some statistics from our large code base as to which of the assert
methods get used relative to the others:

These percentages are relative to the count of assertEqual(s) uses being
100% and cover python code written by a crazy large number of engineers.

assertListEqual	        4.61%
assertNotEqual(s)	1.91%
assertDictEqual	        1.90%
assertIn	        1.75%
assertSameElements	1.08%
assertIsNone	        0.47%
assertGreater	        0.37%
assertMultiLineEqual	0.36%
assertNotIn	        0.36%
assertLess	        0.24%
assertRaisesWithRegexpMatch 0.23%
assertIsNotNone	        0.20%
assertSetEqual	        0.16%
assertGreaterEqual	0.11%
assertLessEqual	        0.09%
assertTupleEqual	0.04%
assertSequenceEqual	0.04%
assertDictContainsSubset 0.02%

assertSequenceEqual is used by the List and Tuple equal functions so its
stand alone use isn't that relevant.  DictContainsSubset does not appear
to be used much.

I -did- add casing for the type to the main assertEqual method so it may
make sense to make the new type specific methods private so that they're
not part of the public API (ie: I agree with pitrou that it seems
Date User Action Args
2009-03-29 01:46:52gregory.p.smithsetrecipients: + gregory.p.smith, gvanrossum, rhettinger, purcell, pitrou, giampaolo.rodola, pupeno, benjamin.peterson, gpolo
2009-03-29 01:46:52gregory.p.smithsetmessageid: <>
2009-03-29 01:46:51gregory.p.smithlinkissue2578 messages
2009-03-29 01:46:50gregory.p.smithcreate