File: testing.py

package info (click to toggle)
python-skytools 3.3-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 496 kB
  • sloc: python: 5,456; ansic: 1,016; makefile: 13
file content (15 lines) | stat: -rw-r--r-- 294 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Utilities for tests.
"""

from __future__ import division, absolute_import, print_function

from collections import OrderedDict

def ordered_dict(d):
    """Return OrderedDict with sorted keys.

    >>> OrderedDict(dict(a=1,b=2,c=3))
    x
    """
    return OrderedDict(sorted(d.items()))