# Path: moedjpack/moepad/mputils.py
# def sub_dict(somedict, somekeys, default=None):
# def loggerInit(logfile):
# def utcnow():
# def _deletePrefix(key):
# def create_default_db():


import logging
import redis
from moedjpack.moepad.mputils import sub_dict, loggerInit, rs, logger
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: delo
# @Date:   2014-02-17 21:36:42
# @Email:  deloeating@gmail.com
# @Last modified by:   Sai
# @Last modified time: 2014-03-02 15:35:55


def test_subdict():
    a = {'k1': 'v1', 'k2': 'v2', 'k3': 'v3'}
    keys = ['k1', 'k3']

# Path: moedjpack/moepad/mputils.py
# def sub_dict(somedict, somekeys, default=None):
# def loggerInit(logfile):
# def utcnow():
# def _deletePrefix(key):
# def create_default_db():


# Path: moedjpack/moepad/tests/test_mputils.py
import logging
import redis
from moedjpack.moepad.mputils import sub_dict, loggerInit, rs, logger

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: delo
# @Date:   2014-02-17 21:36:42
# @Email:  deloeating@gmail.com
# @Last modified by:   Sai
# @Last modified time: 2014-03-02 15:35:55


def test_subdict():
    a = {'k1': 'v1', 'k2': 'v2', 'k3': 'v3'}
    keys = ['k1', 'k3']

    assert sub_dict(a, keys) == {'k1': 'v1', 'k3': 'v3'}