'L{dns._nameToLabels} returns a list containing entries
for all labels in a subdomain name.'

def test_subdomain(self):

    self.assertEqual(dns._nameToLabels('foo.bar.baz.example.com.'), ['foo', 'bar', 'baz', 'example', 'com', ''])
