It seems AgentRPCNotifier is not mocked in test_ryu_plugin, so PRC notification methods are invoked and as a result impl_fake dispatcher calls callback methods in previous tests. I am not sure impl_fake RPC is cleared after each test or not. Anyway, mocking ryu_plugin.notifier solves this problem.
It seems AgentRPCNotifier is not mocked in test_ryu_plugin, so PRC notification methods are invoked and as a result impl_fake dispatcher calls callback methods in previous tests. I am not sure impl_fake RPC is cleared after each test or not. Anyway, mocking ryu_plugin.notifier solves this problem.