From: Raymond Hettinger Date: Sun, 6 Oct 2013 00:14:51 +0000 (-0700) Subject: Strengthen one of the collections.Counter() tests X-Git-Tag: v3.4.0a4~273 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=facd0a346f34c97dcbea315b7652503196c753f5;p=thirdparty%2FPython%2Fcpython.git Strengthen one of the collections.Counter() tests --- diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index ade6ee78cea3..56e812070582 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -1080,8 +1080,10 @@ class TestCounter(unittest.TestCase): # test fidelity to the pure python version c = CounterSubclassWithSetItem('abracadabra') self.assertTrue(c.called) + self.assertEqual(dict(c), {'a': 5, 'b': 2, 'c': 1, 'd': 1, 'r':2 }) c = CounterSubclassWithGet('abracadabra') self.assertTrue(c.called) + self.assertEqual(dict(c), {'a': 5, 'b': 2, 'c': 1, 'd': 1, 'r':2 }) ################################################################################