def test_repr(self):
        """
        L{dns._OPTVariableOption.__repr__} displays the code and data
        of the option.
        """
        self.assertEqual(
            repr(dns._OPTVariableOption(1, b'x')),
            '<_OPTVariableOption '
            'code=1 '
            "data=x"
            '>')

        L{dns._OPTVariableOption.__repr__} displays the code and data
        of the option.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py