summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-01-14 01:15:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-01-14 01:15:06 (GMT)
commitafd112baef3cb8718cca724fe91910af6291577e (patch)
tree599e5c80c391ad0da74439976962fad4375d5516 /Lib
parent59894127e4b64dfbf017fe488a7de19c15b01865 (diff)
downloadcpython-afd112baef3cb8718cca724fe91910af6291577e.zip
cpython-afd112baef3cb8718cca724fe91910af6291577e.tar.gz
cpython-afd112baef3cb8718cca724fe91910af6291577e.tar.bz2
Add tests for __init__() and update() with no args.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_collections.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py
index 80ee2c5..13ae9bf 100644
--- a/Lib/test/test_collections.py
+++ b/Lib/test/test_collections.py
@@ -396,8 +396,10 @@ class TestCounter(unittest.TestCase):
self.assertRaises(TypeError, hash, c)
c.update(dict(a=5, b=3, c=1))
c.update(Counter('a' * 50 + 'b' * 30))
+ c.update() # test case with no args
c.__init__('a' * 500 + 'b' * 300)
c.__init__('cdc')
+ c.__init__()
self.assertEqual(c, dict(a=555, b=333, c=3, d=1))
self.assertEqual(c.setdefault('d', 5), 1)
self.assertEqual(c['d'], 1)