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

Method test_empty_line

testUpdateHostsFile.py:1586–1593  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1584 self.expected_domains = ["xn--oogle-wmc.com", "www.xn--hualae-0wa.cl"]
1585
1586 def test_empty_line(self):
1587 data = ["", "\r", "\n"]
1588
1589 for empty in data:
1590 expected = empty
1591
1592 actual = domain_to_idna(empty)
1593 self.assertEqual(actual, expected)
1594
1595 def test_commented_line(self):
1596 data = "# Hello World"

Callers

nothing calls this directly

Calls 1

domain_to_idnaFunction · 0.90

Tested by

no test coverage detected