MCPcopy
hub / github.com/StevenBlack/hosts / test_line_without_prefix

Method test_line_without_prefix

testUpdateHostsFile.py:1707–1714  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1705 self.assertEqual(actual, expected)
1706
1707 def test_line_without_prefix(self):
1708 for i in range(len(self.domains)):
1709 data = self.domains[i].decode("utf-8")
1710 expected = self.expected_domains[i]
1711
1712 actual = domain_to_idna(data)
1713
1714 self.assertEqual(actual, expected)
1715
1716
1717class GetFileByUrl(BaseStdout):

Callers

nothing calls this directly

Calls 1

domain_to_idnaFunction · 0.90

Tested by

no test coverage detected