From: Casey Deccio Date: Sat, 25 Jun 2016 00:44:29 +0000 (-0400) Subject: Use meaningful test X-Git-Tag: v1.15.0~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3b18837a9a44ff71fd92337e8bc37454553b846;p=thirdparty%2Fdnspython.git Use meaningful test Test added in 257f2a didn't actually test the problem addressed in 257f2a. This one does. --- diff --git a/tests/test_name.py b/tests/test_name.py index 645cf759..e4ff9e8a 100644 --- a/tests/test_name.py +++ b/tests/test_name.py @@ -238,9 +238,9 @@ class NameTestCase(unittest.TestCase): self.assertEqual(t, b'FOO\.bar') def testToText9(self): - n = dns.name.from_text(r'\x80\.bar', origin=None) - t = n.to_text() - self.assertEqual(t, br'x80\.bar') + n = dns.name.from_text('FOO bar', origin=None) + t = n.to_unicode() + self.assertEqual(t, r'FOO\032bar') def testSlice1(self): n = dns.name.from_text(r'a.b.c.', origin=None)