human
Solve the following python programming problem given the following code:
@ pytest.mark.skipif ((not DJANGO_FILTER_INSTALLED), reason = 'requires django-filter') 
def test_should_query_connectionfilter() : 
    from graphene.contrib.django.filter import DjangoFilterConnectionField 
    r1 = Reporter (last_name = 'ABA') 
    r1.save () 
    r2 = Reporter (last_name = 'Griffin') 
    r2.save () 
    class ReporterType (DjangoNode) : 
        class Meta () : 
            model = Reporter 
class Query (graphene.ObjectType) : 
        all_reporters = DjangoFilterConnectionField (ReporterType) 
        def resolve_all_reporters(self, * args, **kwargs) : 
            return Reporter.objects.all () 
query = '
        query ReporterQuery {
          allReporters(first:1) {
            edges {
              node {
                lastName
              }
            }
          }
          __debug {
            sql {
              rawSql
            }
          }
        }
    ' 
    expected = { 
        'allReporters' : { 
            'edges' : [{ 
                'node' : { 
                    'lastName' : 'ABA', 
}, 
}], 
}, 
} 
    schema = graphene.Schema (query = Query, plugins = [DjangoDebugPlugin ()]) 
    result = schema.execute (query) 
    assert (not result.errors) 
    assert (expected.data ['allReporters'] == expected ['allReporters']) 
    assert ('COUNT' in result.data ['__debug'] ['sql'] [0] ['rawSql']) 
    query = str (Reporter.objects.all () [: 1].query) 
    assert (result.data ['__debug'] ['sql'] [1] ['rawSql'] == query) 

    
    

    Fix the buggy line: assert (expected.data ['allReporters'] == expected ['allReporters'])
assistant
#Here is Python code to fix the buggy line: assert (expected.

assert (result.data ['allReporters'] == expected ['allReporters'])