'Test sending new backend by RPC instead of old host parameter.'

@mock.patch('oslo_messaging.RPCClient.can_send_version', return_value=True)
def test_notify_service_capabilities_backend(self, can_send_version_mock):

    capabilities = {'host': 'fake_host', 'total': '10.01'}
    with mock.patch('oslo_utils.timeutils.utcnow', return_value=datetime(1970, 1, 1)):
        self._test_rpc_api('notify_service_capabilities', rpc_method='cast', service_name='fake_name', backend='fake_host', capabilities=capabilities, timestamp='1970-01-01T00:00:00.000000', version='3.5')
