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

Method test_multiple_space_as_separator

testUpdateHostsFile.py:1621–1629  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1619 self.assertEqual(actual, expected)
1620
1621 def test_multiple_space_as_separator(self):
1622 # Test with multiple space as separator.
1623 for i in range(len(self.domains)):
1624 data = (b"0.0.0.0 " + self.domains[i]).decode("utf-8")
1625 expected = "0.0.0.0 " + self.expected_domains[i]
1626
1627 actual = domain_to_idna(data)
1628
1629 self.assertEqual(actual, expected)
1630
1631 def test_multiple_tabs_as_separator(self):
1632 # Test with multiple tabls as separator.

Callers

nothing calls this directly

Calls 1

domain_to_idnaFunction · 0.90

Tested by

no test coverage detected