def test_cname_lookup(self, query, rdtype='SOA'):
        """The QuestionSection's Qtype ends up being SOA, even though CNAME was
        the query. See:
        github.com/rthalley/dnspython/blob/43c14fd73b3b
          94211ff8bfad8f894b48cce4e577/dns/resolver.py#L95
        """
        rrs = ['auth1.{0} hostmaster.{0} '
               '1412191487 16384 2048 1048576 2560'.format(TEST_DOMAIN)]
        query.return_value = make_answer(rdtype, authorities=rrs)

        resp, code = self.lookup('CNAME')
        self.assert200(code)
        self.assertDictContainsSubset({
            'QuestionSection': {
                'Qclass': 'IN', 'Qtype': rdtype, 'Qname': 'testdomain.com.'},
            'AnswerSection': [],
            'AuthoritySection': [
                {'MasterServerName': 'auth1.%s' % TEST_DOMAIN,
                 'MaintainerName': TEST_DOMAIN % 'hostmaster.%s',
                 'Serial': 1412191487,
                 'Refresh': 16384,
                 'Retry': 2048,
                 'Expire': 1048576,
                 'NegativeTtl': 2560,
                 'Class': 'IN', 'Type': rdtype, 'TTL': 60, 'Name': TEST_DOMAIN}
            ]
        }, resp)
dataset/ETHPy150Open opendns/OpenResolve/tests/test_util.py/ParseQueryTests.test_cname_lookup/swapped operands of `%`