Ross McFarland
3 years ago
No known key found for this signature in database
GPG Key ID: 943B179E15D3B22A
2 changed files with
6 additions and
0 deletions
-
octodns/idna.py
-
tests/test_octodns_idna.py
|
|
|
@ -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) |
|
|
|
|
|
|
|
|