Merge "l3: an unit test for set_extra_attr_value"
This commit is contained in:
commit
8e3730538c
@ -581,6 +581,11 @@ class ExtraAttributesMixinTestCase(testlib_api.SqlTestCase):
|
|||||||
self.mixin.set_extra_attr_value(self.ctx, self.router,
|
self.mixin.set_extra_attr_value(self.ctx, self.router,
|
||||||
'bad', 'value')
|
'bad', 'value')
|
||||||
|
|
||||||
|
def test_set_attrs_and_extend_no_transaction(self):
|
||||||
|
with testtools.ExpectedException(RuntimeError):
|
||||||
|
self.mixin.set_extra_attr_value(self.ctx, self.router,
|
||||||
|
'ha_vr_id', 99)
|
||||||
|
|
||||||
def test__extend_extra_router_dict_defaults(self):
|
def test__extend_extra_router_dict_defaults(self):
|
||||||
rdict = {}
|
rdict = {}
|
||||||
self.mixin._extend_extra_router_dict(rdict, self.router)
|
self.mixin._extend_extra_router_dict(rdict, self.router)
|
||||||
|
Loading…
Reference in New Issue
Block a user