

@mock.patch.object(rpc, 'get_allowed_exmods')
@mock.patch.object(rpc, 'RequestContextSerializer')
@mock.patch.object(messaging, 'get_transport')
@mock.patch.object(messaging, 'get_notification_transport')
@mock.patch.object(messaging, 'Notifier')
def test_init_both(self, mock_notif, mock_noti_trans, mock_trans, mock_ser, mock_exmods):
    expected = [{
        
    }, {
        'topic': 'versioned_notifications',
    }]
    mock_trans._test_init(mock_notif, mock_noti_trans, mock_trans, mock_ser, mock_exmods, 'both', expected)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/test_rpc.py TestRPC.test_init_both/VarMisuse@98/148 `self`->`mock_trans`