def METHOD_NAME(function_scope_iconomi):
    """Test that if a iconomi balance query returns unknown asset no exception
    is raised and a warning is generated. Same for unsupported assets"""
    iconomi = function_scope_iconomi
    def mock_unknown_asset_return(url, **kwargs):  # pylint: disable=unused-argument
        return MockResponse(200, ICONOMI_BALANCES_RESPONSE)
    with patch.object(iconomi.session, 'get', side_effect=mock_unknown_asset_return):
        # Test that after querying the assets only ETH and BTC are there
        balances, msg = iconomi.query_balances()
    assert msg == ''
    assert len(balances) == 3
    assert balances[A_ETH].amount == FVal('32.0')
    assert balances[A_ETH].usd_value == FVal('10000.031241234')
    assert balances[A_REP].amount == FVal('0.5314532451')
    assert balances[A_REP].usd_value == FVal('0.834903071')
    warnings = iconomi.msg_aggregator.consume_warnings()
    assert len(warnings) == 2
    assert 'unsupported ICONOMI strategy CAR' in warnings[0]
    assert 'unsupported ICONOMI strategy SCND' in warnings[1]