mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Use dict.__repr__ for IdnaDict
This commit is contained in:
@@ -69,3 +69,6 @@ class IdnaDict(MutableMapping):
|
||||
def decoded_items(self):
|
||||
for key, value in self.items():
|
||||
yield (idna_decode(key), value)
|
||||
|
||||
def __repr__(self):
|
||||
return self._data.__repr__()
|
||||
|
||||
@@ -108,6 +108,9 @@ class TestIdnaDict(TestCase):
|
||||
self.assertFalse(self.utf8 in d)
|
||||
self.assertFalse(idna_encode(self.utf8) in d)
|
||||
|
||||
# smoke test of repr
|
||||
d.__repr__()
|
||||
|
||||
def test_keys(self):
|
||||
d = IdnaDict(self.normal)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user