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

Method test_sort_sources_simple

testUpdateHostsFile.py:142–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

140
141class TestSortSources(Base):
142 def test_sort_sources_simple(self):
143 given = [
144 "sbc.io",
145 "example.com",
146 "github.com",
147 ]
148
149 expected = ["example.com", "github.com", "sbc.io"]
150
151 actual = sort_sources(given)
152
153 self.assertEqual(actual, expected)
154
155 def test_live_data(self):
156 given = [

Callers

nothing calls this directly

Calls 1

sort_sourcesFunction · 0.90

Tested by

no test coverage detected