

@mock.patch.object(messaging, 'set_transport_defaults')
def test_set_defaults(self, mock_set):
    control_exchange = mock.Mock()
    rpc.set_defaults(self)
    mock_set.assert_called_once_with(control_exchange)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/test_rpc.py TestRPC.test_set_defaults/VarMisuse@36/50 `control_exchange`->`self`