MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / test_getParentAndBase

Method test_getParentAndBase

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

Source from the content-addressed store, hash-verified

10
11class UtilTest(unittest.TestCase):
12 def test_getParentAndBase(self):
13 self.assertEqual(('a/b', 'c'), getParentAndBase('a/b/c'))
14 self.assertEqual(('data://foo', 'bar'), getParentAndBase('data://foo/bar'))
15 self.assertEqual(('data:///', 'foo'), getParentAndBase('data:///foo'))
16 self.assertEqual(('data://', 'foo'), getParentAndBase('data://foo'))
17
18 def test_getParentAndBase_errors(self):
19 self.assertRaises(Exception, getParentAndBase, '/')

Callers

nothing calls this directly

Calls 1

getParentAndBaseFunction · 0.90

Tested by

no test coverage detected