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

Method test_join_unicode

testUpdateHostsFile.py:1995–2001  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1993 self.assertEqual(actual, expected)
1994
1995 def test_join_unicode(self):
1996 for i in range(1, 4):
1997 paths = [u"pathNew"] * i
1998 expected = "path1" + (self.sep + "pathNew") * i
1999 actual = path_join_robust("path1", *paths)
2000
2001 self.assertEqual(actual, expected)
2002
2003 @mock.patch("os.path.join", side_effect=mock_path_join)
2004 def test_join_error(self, _):

Callers

nothing calls this directly

Calls 1

path_join_robustFunction · 0.90

Tested by

no test coverage detected