MCPcopy Create free account
hub / github.com/algorithmiaio/algorithmia-python / test_pathJoin

Method test_pathJoin

Test/regular/util_test.py:23–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 self.assertRaises(Exception, getParentAndBase, 'a/')
22
23 def test_pathJoin(self):
24 self.assertEqual('/a/b/c/d', pathJoin('/a/b/c/', 'd'))
25 self.assertEqual('/a/b/c/d', pathJoin('/a/b/c', 'd'))
26 self.assertEqual('/a//b/c///d', pathJoin('/a//b/c//', '/d'))
27
28if __name__ == '__main__':
29 unittest.main()

Callers

nothing calls this directly

Calls 1

pathJoinFunction · 0.90

Tested by

no test coverage detected