'Test that a truncated message results in an equivalent request made via
TCP.'

def test_truncatedMessage(self):

    m = dns.Message(trunc=True)
    m.addQuery('example.com')
    def queryTCP(queries):
        self.assertEqual(queries, m.queries)
        response = dns.Message()
        response.answers = ['answer']
        response.authority = ['authority']
        response.additional = ['additional']
        return defer.succeed(response)
    self.resolver.queryTCP = queryTCP
    d = self.resolver.filterAnswers(m)
    d.addCallback(self.assertEqual, (['answer'], ['authority'], ['additional']))
    return d
