'If a response includes a record with a class different from the one
in the query, it is ignored and lookup continues until a record with
the right class is found.'

def test_lookupChecksClass(self):

    badClass = Record_A('10.0.0.1')
    badClass.CLASS = HS
    servers = {('1.1.2.3', 53): {('foo.example.com', A): {'answers': [('foo.example.com', badClass)], 'authority': [('foo.example.com', Record_NS('ns1.example.com'))], 'additional': [('ns1.example.com', Record_A('10.0.0.2'))]}}, ('10.0.0.2', 53): {('foo.example.com', A): {'answers': [('foo.example.com', Record_A('10.0.0.3'))]}}}
    resolver = self._getResolver(servers)
    d = resolver.lookupAddress('foo.example.com')
    d.addCallback(getOnePayload)
    d.addCallback(self.assertEqual, Record_A('10.0.0.3'))
    return d
