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

Method test_commented_line

testUpdateHostsFile.py:1595–1600  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1593 self.assertEqual(actual, expected)
1594
1595 def test_commented_line(self):
1596 data = "# Hello World"
1597 expected = data
1598 actual = domain_to_idna(data)
1599
1600 self.assertEqual(actual, expected)
1601
1602 def test_simple_line(self):
1603 # Test with a space as separator.

Callers

nothing calls this directly

Calls 1

domain_to_idnaFunction · 0.90

Tested by

no test coverage detected