'Verifies instance_get_all_by_filters calls the sort function.'

@mock.patch('nova.db.sqlalchemy.api.instance_get_all_by_filters_sort')
def test_instance_get_all_by_filters_calls_sort(self, mock_get_all_filters_sort):

    ctxt = context.get_admin_context()
    sqlalchemy_api.instance_get_all_by_filters(ctxt, {'foo': 'bar'}, 'sort_key', 'sort_dir', limit=100, marker='uuid', columns_to_join='columns')
    mock_get_all_filters_sort.assert_called_once_with(ctxt, {'foo': 'bar'}, limit=100, marker='uuid', columns_to_join='columns', sort_keys=['sort_key'], sort_dirs=['sort_dir'])
