Merge "l3: an unit test for set_extra_attr_value"

This commit is contained in:
Zuul authored and Gerrit Code Review committed 2018-02-23 12:12:59 +00:00
commit 8e3730538c
1 file changed
+5
+5
View File
@@ -581,6 +581,11 @@ class ExtraAttributesMixinTestCase(testlib_api.SqlTestCase):
self.mixin.set_extra_attr_value(self.ctx, self.router,
'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):
rdict = {}
self.mixin._extend_extra_router_dict(rdict, self.router)