]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
emacs
authorJonathan Ellis <jbellis@gmail.com>
Wed, 31 Dec 2008 14:25:53 +0000 (14:25 +0000)
committerJonathan Ellis <jbellis@gmail.com>
Wed, 31 Dec 2008 14:25:53 +0000 (14:25 +0000)
test/base/utils.py

index 0add6dd66cb68a5565d2c9661b0d3964de2a150c..b3e11f230b394c8551471d91b55fb29e79f9b93f 100644 (file)
@@ -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