'L{dns.SimpleRecord.encode} encodes the record\'s name information and
writes it to the file-like object passed to it and
L{dns.SimpleRecord.decode} reads from a file-like object to re-construct
a L{dns.SimpleRecord} instance.'

def test_resources(self):

    names = ('this.are.test.name', 'will.compress.will.this.will.name.will.hopefully', 'test.CASE.preSErVatIOn.YeAH', 'a.s.h.o.r.t.c.a.s.e.t.o.t.e.s.t', 'singleton')
    for s in names:
        f = BytesIO()
        dns.SimpleRecord(s).encode(f)
        f.seek(0, 0)
        result = dns.SimpleRecord()
        result.decode(f)
        self.assertEqual(result.name, dns.Name(s))
