Use oslotest instead of common test module

Module openstack.common.test is obsolete, so we should use
oslotest library instead of it.
Modified tests and common database code, new requirement added.

Change-Id: I853e548f11a4c3785eaf75124510a6d789536634
This commit is contained in:
Victor Sergeyev 2014-04-15 13:05:35 +03:00 committed by Ilya Pekelny
parent 13d6d6308a
commit 2280d17fc2
1 changed files with 3 additions and 2 deletions

View File

@ -13,11 +13,12 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslotest import base as test_base
from openstack.common import context
from openstack.common import test
class ContextTest(test.BaseTestCase):
class ContextTest(test_base.BaseTestCase):
def test_context(self):
ctx = context.RequestContext()