Merge "Change reference to OvnDbNotifyHandler._watched_events"
This commit is contained in:
commit
a918fabf56
@ -99,7 +99,12 @@ class TestOvnDbNotifyHandler(base.BaseTestCase):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestOvnDbNotifyHandler, self).setUp()
|
super(TestOvnDbNotifyHandler, self).setUp()
|
||||||
self.handler = ovsdb_monitor.OvnDbNotifyHandler(mock.ANY)
|
self.handler = ovsdb_monitor.OvnDbNotifyHandler(mock.ANY)
|
||||||
|
# NOTE(ralonsoh): once the ovsdbapp library version is bumped beyond
|
||||||
|
# 1.5.0, the first assignation (using name mangling) can be deleted.
|
||||||
|
try:
|
||||||
self.watched_events = self.handler._RowEventHandler__watched_events
|
self.watched_events = self.handler._RowEventHandler__watched_events
|
||||||
|
except AttributeError:
|
||||||
|
self.watched_events = self.handler._watched_events
|
||||||
|
|
||||||
def test_watch_and_unwatch_events(self):
|
def test_watch_and_unwatch_events(self):
|
||||||
expected_events = set()
|
expected_events = set()
|
||||||
|
Loading…
Reference in New Issue
Block a user