From: Jonathan Ellis Date: Wed, 31 Dec 2008 14:25:53 +0000 (+0000) Subject: emacs X-Git-Tag: rel_0_5_0~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3373994cfd3fcd0af4d805d2b8d1ba2ce0a6d903;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git emacs --- 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