'L{Name.decode} populates the L{Name} instance with name information read
from the file-like object passed to it.'

def test_decode(self):

    n = dns.Name()
    n.decode(BytesIO('\x07example\x03com\x00'))
    self.assertEqual(n.name, 'example.com')
