diff options
author | Raymond Hettinger <python@rcn.com> | 2013-10-06 00:14:51 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-10-06 00:14:51 (GMT) |
commit | facd0a346f34c97dcbea315b7652503196c753f5 (patch) | |
tree | 549983a3a9bed6c024674c30319ca99244cbf5b7 /Lib | |
parent | 07573d7b2418dd3a043c8fc95f40517fa4543048 (diff) | |
download | cpython-facd0a346f34c97dcbea315b7652503196c753f5.zip cpython-facd0a346f34c97dcbea315b7652503196c753f5.tar.gz cpython-facd0a346f34c97dcbea315b7652503196c753f5.tar.bz2 |
Strengthen one of the collections.Counter() tests
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_collections.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index ade6ee7..56e8120 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 }) ################################################################################ |