~ubuntu-branches/ubuntu/vivid/ironic/vivid-updates

« back to all changes in this revision

Viewing changes to ironic/tests/objects/test_objects.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-01-05 12:21:37 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20150105122137-171bqrdpcxqipunk
Tags: 2015.1~b1-0ubuntu1
* New upstream beta release:
  - d/control: Align version requirements with upstream release.
* d/watch: Update uversionmangle to deal with kilo beta versioning
  changes.
* d/control: Bumped Standards-Version to 3.9.6, no changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
from ironic.objects import utils
27
27
from ironic.openstack.common import context
28
28
from ironic.tests import base as test_base
29
 
from ironic.tests.db import base as db_base
30
29
 
31
30
gettext.install('ironic')
32
31
 
124
123
        self.assertEqual(expected, Test2._obj_classes)
125
124
 
126
125
 
127
 
class TestUtils(db_base.DbTestCase):
 
126
class TestUtils(test_base.TestCase):
128
127
 
129
128
    def test_datetime_or_none(self):
130
129
        naive_dt = datetime.datetime.now()
212
211
                         base.obj_to_primitive(mylist))
213
212
 
214
213
 
215
 
class _BaseTestCase(db_base.DbTestCase):
 
214
class _BaseTestCase(test_base.TestCase):
216
215
    def setUp(self):
217
216
        super(_BaseTestCase, self).setUp()
218
217
        self.remote_object_calls = list()
513
512
    pass
514
513
 
515
514
 
516
 
class TestObjectListBase(db_base.DbTestCase):
 
515
class TestObjectListBase(test_base.TestCase):
517
516
 
518
517
    def test_list_like_operations(self):
519
518
        class Foo(base.ObjectListBase, base.IronicObject):
590
589
        self.assertEqual(set(), obj.obj_what_changed())
591
590
 
592
591
 
593
 
class TestObjectSerializer(db_base.DbTestCase):
 
592
class TestObjectSerializer(test_base.TestCase):
594
593
 
595
594
    def test_serialize_entity_primitive(self):
596
595
        ser = base.IronicObjectSerializer()