diff options
| author | Jonathan Ellis <jbellis@gmail.com> | 2008-12-31 14:25:53 +0000 |
|---|---|---|
| committer | Jonathan Ellis <jbellis@gmail.com> | 2008-12-31 14:25:53 +0000 |
| commit | 3373994cfd3fcd0af4d805d2b8d1ba2ce0a6d903 (patch) | |
| tree | a0ee595a9512633ff0c7a6105bc92cce5ce9b147 /test/base/utils.py | |
| parent | 7391c7bd4d1d5260d3f4143d7226ec9190dc997b (diff) | |
| download | sqlalchemy-3373994cfd3fcd0af4d805d2b8d1ba2ce0a6d903.tar.gz | |
emacs
Diffstat (limited to 'test/base/utils.py')
| -rw-r--r-- | test/base/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/base/utils.py b/test/base/utils.py index 0add6dd66..b3e11f230 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 |
