def test_decode(self):
        """
        L{Name.decode} populates the L{Name} instance with name information read
        from the file-like object passed to it.
        """
        n = dns.Name()
        n.decode(BytesIO(b"\x07example\x03com\x00"))
        self.assertEqual(n.name, b"example.com")

        L{Name.decode} populates the L{Name} instance with name information read
        from the file-like object passed to it.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py