Python及单元测试

Python书写格式规范

2017-09-11  本文已影响21人  PPMac

模块

# Copyright 2017 Pxxx Txxx (Shanghai) Ltd.
#
# Authors: Gao Kxxxx <gaoxxxx@pxxxx.cn>
#
# Copyright (c) 2017. This file is confidential and proprietary.
# All Rights Reserved, Pxxx Txxx (Shanghai) Ltd(http://www.pxxx.cn).

"""Unittest for sqlalchemy api.

Functions start with test_XXX are used for testing db.sqlalchemy.api functions.
Fake database datas are made by storplus.tests.unit.utils.

"""   
import abc
import six

from oslo_config import cfg
from oslo_log import log as logging
from oslo_serialization import jsonutils
from oslo_utils import importutils
from oslo_utils import timeutils

from storplus.db import base
from storplus.engine import rpcapi as engine_rpcapi
from storplus.engine import states
from storplus import exception
上一篇 下一篇

猜你喜欢

热点阅读