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

Method test_multiple_tabs_as_separator

testUpdateHostsFile.py:1631–1639  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1629 self.assertEqual(actual, expected)
1630
1631 def test_multiple_tabs_as_separator(self):
1632 # Test with multiple tabls as separator.
1633 for i in range(len(self.domains)):
1634 data = (b"0.0.0.0\t\t\t\t\t\t" + self.domains[i]).decode("utf-8")
1635 expected = "0.0.0.0\t\t\t\t\t\t" + self.expected_domains[i]
1636
1637 actual = domain_to_idna(data)
1638
1639 self.assertEqual(actual, expected)
1640
1641 def test_line_with_comment_at_the_end(self):
1642 # Test with a space as separator.

Callers

nothing calls this directly

Calls 1

domain_to_idnaFunction · 0.90

Tested by

no test coverage detected