From 3373994cfd3fcd0af4d805d2b8d1ba2ce0a6d903 Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Wed, 31 Dec 2008 14:25:53 +0000 Subject: [PATCH] emacs --- test/base/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/base/utils.py b/test/base/utils.py index 0add6dd66c..b3e11f230b 100644 --- a/test/base/utils.py +++ b/test/base/utils.py @@ -52,6 +52,10 @@ class OrderedDictTest(TestBase): eq_(o.keys(), ['a', 'b', 'c', 'd', 'e', 'f']) eq_(o.values(), [1, 2, 3, 4, 5, 6]) + def test_odict_constructor(self): + o = util.OrderedDict([('name', 'jbe'), ('fullname', 'jonathan'), ('password', '')]) + eq_(o.keys(), ['name', 'fullname', 'password']) + class OrderedSetTest(TestBase): def test_mutators_against_iter(self): # testing a set modified against an iterator -- 2.47.3