diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_types.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index eec9e2d..06b001a 100644 --- a/Lib/test/test_types.py +++ b/Lib/test/test_types.py @@ -265,3 +265,9 @@ if d['key'][0] <> 3: d.setdefault('key', []).append(4) if len(d['key']) <> 2: raise TestFailed, 'present {} setdefault, w/ 2nd arg' +if d.keys()[0] != d.firstkey(): + raise TestFailed, 'first key is not first in keys' +if d.values()[0] != d.firstvalue(): + raise TestFailed, 'first value is not first in values' +if d.items()[0] != d.firstitem(): + raise TestFailed, 'first item is not first in items' |